|
No, just a new malicious file has been created in the windows/system32 folder.When i try to delete that file it shows file in use . and this file is being used by the winlogon.exe process. how can i delete this file programmatically.
|
|
|
|
|
How did you determine that it's a "new" file?
Files can only be deleted when they're not in use, and you can only remove it after a reboot and before logon, as described before. (Simple explanation, I cannot throw away your mug if you're still drinking from it, since it's in use)
WinLogon does not load random files. If the file is in use, it counts as a dependency. If WinLogon is started without the dependency, it will simply fail.
"Old" file's would be "corrected" by putting back a copy from a previous restore-point, or by copying back the original file from the setup.
Bastard Programmer from Hell
|
|
|
|
|
how to create a menu items on a form you had?... hmmm...
hermaine...",)
|
|
|
|
|
Do you wish to create a menu on your form?
In the toolbox, in the menus & Toolbars section, drag and drop a MenuStrip onto your form then start filling in your various menu options.
Double clicking the finished menu will create a a Private Sub menu item click event where you place the code to call the various menu item request calls.
Hope this helps
|
|
|
|
|
hlep me
-how can write (dictionary as string code)in information retrieval code via vb.net?
and
-how can write (fixed width code) in information retrieval via vb.net?
and
-how can write (blocking code) in information retrieval via vb.net?
and
so much thank you
|
|
|
|
|
haneeno wrote: how can write (dictionary as string code)in information retrieval code via
vb.net?
Depends on the way that the dictionary is written to file/the structure of that file. Without any additional info, I'd say "deserialize".
haneeno wrote: how can write (fixed width code) in information retrieval via vb.net?
By reading the file as text, and copying the content of that subpart of the string. See the System.IO namespace and the examples on MSDN.
haneeno wrote: how can write (blocking code) in information retrieval via vb.net?
All code is blocking, if you want async code you'll need to define a thread.
Bastard Programmer from Hell
|
|
|
|
|
Can sombody help me make a startup window that fades in and out?
|
|
|
|
|
I suppose there may be another way to achieve this, but ....
If the information to be displayed on the Startup Form is to remain static (ie not changing) may I suggest using an image transition effect to achieve your "Start Up Fade".
First create a graphic of your "startup page information" which will be displayed in a picturebox control.
Then I would add a new winform or splash to your project, set FormBorderStyle to None, add a PictureBox the size of the form that will load the page graphic (Startup Image) you created, then when the new form loads on application start, call the image transition effect, cycle through the fade in, small delay then fade out then close the window.
I believe the CodeProject has a project that demonstrates how to implement a simple trasition on images in vb.net which could be used to create the fade in fade out process.
http://www.codeproject.com/Articles/43605/Image-Transition-in-VB-NET-Windows-Forms
Hope this helps
|
|
|
|
|
Look for "splash screen".
By the way, you should check whether your application is running in some kind of remote session (RDP, Citrix): in such a case, do not use fade-in fade-out effects as that will cause large network traffic.
|
|
|
|
|
There's a reason why you don't see apps do this any more. Does it add value to your app??
Every time I see one of these gimicks I think, "Couldn't they have spent the time to make this on making their app work better??"
|
|
|
|
|
Hi guys
I'm not able to display image from tablegridview to picturebox visual basic 2010 studio.
I know how to reference text value from a cell on tablegridview to textbox I had been created .
this the Code how to do this :
TextBox2.Text = Table1DataGridView.Rows(0).Cells(3).Value.ToString
my question is how to do it with image if you have this image on Table1DataGridView
I tried this code for image but it doesn't work I got error
PictureBox1.image=Table1DataGridView.Rows(0).Cells(2).Value.Toimage
or
PictureBox1.image=Table1DataGridView.Rows(0).Cells(2).Value
both of these cod not work and I get error
please Help
I hope that some one can solve this complex problem and i will be great full for you .
mju10ht@gmail.com
|
|
|
|
|
Try something like this;
PictureBox1.image = CType(Table1DataGridView.Rows(0).Cells(2).Value, Bitmap)
Bastard Programmer from Hell
|
|
|
|
|
thank you for help, but I still get error
show me this :
Unable to cast object of type 'System.Byte[]' to type 'System.Drawing.Bitmap'.
I wonder if that code work to you, so that means the code will be correct and I did something wrong
please I need help
|
|
|
|
|
Dim bytes as Byte() =
Using ms as new MemoryStream(bytes)
Dim img As Bitmap = CType(Image.FromStream(ms), Bitmap)
PictureBox1.Image = img
End Using
Bastard Programmer from Hell
|
|
|
|
|
I don't why he put blue line under MemoryStream(bytes)
Dim bytes As Byte() = Table5DataGridView.Rows(0).Cells(3).Value
Using ms As New MemoryStream(bytes)
Dim img As Bitmap = CType(Image.FromStream(ms), Bitmap)
PictureBox1.Image = img
End Using
on error list show me MemoryStream(bytes)is not
defined

|
|
|
|
|
Prefix it with the correct namespace, like this;
Using ms As New System.IO.MemoryStream(bytes)
..or Import the namespace
Bastard Programmer from Hell
|
|
|
|
|
finally yes it's work how can I say thank you for your help .. but you know what you are my super hero who save my time after two days of stupid attempts went fail. oh my God why I didn't ask you from the first day i got this problem, I have a project and this project depends on this code otherwise I will stop work on this project after I faced this problem but now I'm very excited to back work on my project

|
|
|
|
|
You're welcome 
|
|
|
|
|
Nicely done
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Please stand in front of my pistol, smile and wait for the flash - JSOP 2012
|
|
|
|
|
My Windows forms application sends and receives SOAP messages from/to an https server. Messages with simple and complex results work fine. Still one request that I issue and I don't know how to handle its response.
The response that I don't know to to use - in order to download a document - is as follows:
//*
="1.0"="UTF-8"
<SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<ns1:DownloadResponse xmlns:ns1="urn:URNNAME">
<return href="cid:325410.3217896541231.east-soap.sectown.madrid.co" />
</ns1:DownloadResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
*//
Its clear that the document to download is referred to as
<return href="cid:325410.3217896541231.east-soap.sectown.madrid.co" />
But I don't know how should I handle that CID: (Content-id)
Below is the code that sends the request and receives the response:
Private Function SendRequest(ByVal EnvelopContents As String, ByVal ServiceName As String, ByVal FullPathURL As String) As Boolean
Dim myWebRequest As HttpWebRequest = HttpWebRequest.Create(FullPathURL)
Dim encoding As New ASCIIEncoding()
Dim byte1 As Byte() = encoding.GetBytes(EnvelopContents)
With myWebRequest
.Method = "POST"
.ContentType = "text/xml"
.ContentLength = EnvelopContents.Length
.Headers.Add("Accept-Encoding", "gzip,deflate")
Dim Certificato As X509Certificate = SelCert()
.PreAuthenticate = True
....
....
....
End With
Try
Dim newStream As Stream = myWebRequest.GetRequestStream()
newStream.Write(byte1, 0, byte1.Length)
newStream.Close()
Using myWebResponse As WebResponse = myWebRequest.GetResponse()
Dim dataStream As Stream = myWebResponse.GetResponseStream()
Dim reader As New StreamReader(dataStream)
Dim responseFromServer As String = reader.ReadToEnd()
Return True
End Using
Catch ex As WebException
End Try
End Function
|
|
|
|
|
|
Hey everyone, I'm new to this forum. I'm hoping someone can help me understand how to update a table created in visual studio from an unbound datagrid control in a form. The data in the grid control is populated from a text file I import and want to save to the table. Below is the code I'm using. Any thoughts?
[code]
If IsDBNull(Me.FileData.Text) Or Len(Me.FileData.Text) < 1 Then
MsgBox("You must select the reformatter flate file", MsgBoxStyle.Information)
Exit Sub
Else
Using MyReader As New _
Microsoft.VisualBasic.FileIO.TextFieldParser(Me.FileData.Text)
MyReader.TextFieldType = FileIO.FieldType.Delimited
MyReader.SetDelimiters(",")
Dim currentRow As String()
While Not MyReader.EndOfData
FlatFileImportDataGridView.DataSource = Nothing
Try
currentRow = MyReader.ReadFields()
FlatFileImportDataGridView.Rows.Add(currentRow)
Catch ex As Microsoft.VisualBasic.FileIO.MalformedLineException
MsgBox("Line " & ex.Message & _
"is not valid and will be skipped.")
End Try
End While
End Using
'FlatFileImportDataGridView.DataSource = FlatFileImportBindingSource
Dim dr As New System.Windows.Forms.DataGridViewRow
For Each dr In Me.FlatFileImportDataGridView.SelectedRows
'Me.DataGridView2.Rows.Add(dr.Cells(0).Value, dr.Cells(1).Value, dr.Cells(2).Value, dr.Cells(3).Value, dr.Cells(4).Value, dr.Cells(5).Value, dr.Cells(6).Value, dr.Cells(7).Value)
Next
For Each row1 As DataGridViewRow In FlatFileImportDataGridView.Rows
Dim copyrow As DataRow = Me.Database1DataSet.FlatFileImport.NewRow
For Each col As DataGridViewCell In row1.Cells
copyrow(col.Value) = (col.Value)
Next
Me.Database1DataSet.FlatFileImport.Rows.Add(copyrow)
Next
Me.FlatFileImportTableAdapter.Update(Me.Database1DataSet.FlatFileImport)
End If
[/code]
|
|
|
|
|
AnthonyDailyMail wrote: The data in the grid control is populated from a text file I import and want to save to the table. Below is the code I'm using. Any thoughts?
Yup. Import the old-fashioned way (generate insert-commands) or spend quite some time on MSDN reading on how to update using the adapters.
Bastard Programmer from Hell
|
|
|
|
|
Thanks Eddie. Straight to the point. Could you help me a bit more. You mention generating insert-commands. Can you give an example of how I would do this using my example? I'm still trying to make sense of things.
|
|
|
|
|