Thank you. I imported System.IO
but I get this
'System.IO.StreamReader.Protected Overrides Overloads Sub Dispose(disposing As Boolean)' is not accessible in this context because it is 'Protected'.
I don't know how to fix that.
edit: sorry for misleading title
I've been trying for a while but I can't get it. Is there any other way to do this but much easier?
TextBox1.Text = "pc1036%2iCYBJg76dZCq5W" & vbNewLine & _
"pc1037%3EiXP52z8CfLZgm" & vbNewLine & _
"pc103%tWt73oKijT9Hf2P" & vbNewLine & _...
Hey thanks alot. That code is awesome.
I figured out:
SetPixel(GetDC(FindWindow(0, "Window")), 100, 100, Color.Red.ToArgb)
but the dot is black not red :(
All I want to do is draw a dot in the very middle of my screen, visible over all windows. I assume I use SetPixel and the msdn says use gdi32. I have no idea how to do this. Can someone just tell me exactly how? I swear ive been googling and testing code for well over 4 hours.
If no one knows...
I'm using VS.net 2002 version 7.0... Are you saying the version 5 below me has the native web browser? Then that wouldn't be .NET. I've never heard of .NET 2.
I added a web browser to my project. I needed to send a url that contained some info. (The info I needed to send was contained in the URL), so I did wb.navigate(url) and I guess thats the only way to do it.
The problem is that I had previously done this exact program in vb6 and there werent ANY...
I know this is .net forums but I'm already registered here..
in vb.net i need to put 1 word inside of a text file C:\name.txt i need to put a word like "john" in it.
Now in a vb6 program i need to read the text file. C:\name.txt and store its contents in a variable.
thanks in advance
The Huricane wilma destroyed my house and I had to live with relatives with no computer for a long time. I want to thank you for helping me 2 months ago, but now I cannot get this code to work.
:(
Dim resourceStream As System.IO.Stream
resourceStream = System.Reflection.Assembly.GetExecutingAssembly.GetManifestResourceStream("Program2.Proggy")
Dim files As New FileStream("C:\Documents and Settings\Owner\My Documents\Files", FileMode.Create, FileAccess.Write)
Dim...
Thanks but It's giving mr a problems with the "fileSteam" and this line of code:
resourceStream = System.Reflection.Assembly.GetExecutingAssembly.GetManifestResourceStream(assemblyNameWithoutExtension & "." & resourceFileName)
I changed the assemblyNameWithoutExtension & "." & resourceFileName...
Private Declare Function GetPixel Lib "gdi32" (ByVal X As Long, ByVal Y As Long) As Integer
If RGB(128, 128, 128) = GetPixel(3, 55) Then
MessageBox.Show("color!")
End If
Nothing happens!
I hope this is the code to scan my SCREEN, no my program.
Sorry but it didn't work for me that way. There must be a shorter easier way.
To copy a file its so simple...
file.copy("orginal path", "new path")
But I need for an embedded file. Well, Im not sure if its embedded. Add Existing Item and I can change its properties to stuff like "content" and...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.