Search:
Type: Posts; User: Zeelia
Search:
Search took 0.03 seconds.
-
Alternatively, you could use a timer to make them graphically switch places, so that the "selected" one is in the center/middle.
Create a timer which has a low interval, and once the leftmost icon...
-
You might want to check out the managed Win32 library which is in the codebank. I've had too many headaches trying to figure out how to use ReadProcessMemory, and after several months of trial and...
-
It's not an easy task to write the perfect regex, but the one I wrote should get you what you want.
You might also want to look up how to search with a regex pattern in a string, here on the forum....
-
Your best bet would be to run a regex search on the HTML source code.
\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b
-
I don't quite understand your problem.
But for getting the HTML source of an URL, you can use the System.Net.WebClient or the WebBrowser.
You said that the content isn't HTML, are you trying to...
-
To make it online, you should connect to your external IP, not the internal.
Internal IP addresses usually begin with 192.168.x.x.
You can view your external IP in various sites such as...
-
It's really difficult to tell you what the problem is without seeing the error :)
However, if you want to use something which is just as simple as winsck, maybe even easier, I would recommend the...
-
Why don't you use the inbuilt Socket class in .NET?
It's much better to use with .NET since MSWINSCK was *only* supported on VB6
http://msdn.microsoft.com/en-us/library/sb27wehh.aspx
-
You can get controls by their names aswell, by using Me.Controls.
Untested example:
Dim control1 As PictureBox = Me.Control.Find("D" & reminderday, false)(0)
-
You should have the line fov.StartInfo.CreateNoWindow = True before you run fov.Start()
I don't think it does any difference but I usually use the class ProcessStartInfo and then start it with...
-
Also, you have to remember to SAVE the stored settings, else they just get restored to the default value on the next launch of the program.
-
Yeah, just as Techno said, you need to count how many times the user has tried to login.
Then I would suggest starting the timer if the number of login matches 3.
Disable the login button.
Set the...
-
That's because you should pass a datatable object, not a path to your database :)
First you would need to query the database and put the result in a datatable which you then pass into that code.
-
Use Grimfort's answer, response #2.
A function always *should* return a value. So then you can use the return from the function and add it to the ListBox.
Dim result As String = ""
result =...
-
Yes, the format of CSV isn't that difficult, it per-line based and looks something like this:
A little reminder is that there are different codings of CSV which works differently under different...
-
You might want to go with a sub if you don't want any results back:
Private Sub ExecuteDriverExe(ByVal args As String)
Dim processgetsw As New Process()
...
-
Just a must-know, as techgnome said;
Functions
Always must return a value, unless you declare it in the function declaration. However, that would return the default value of the class, so if you...
-
Well no one has suggested IO.File.WriteAllText(), so I thought I'd suggest it :)
It automatically creates a new file if it doesn't exist. And if you are trying to save to a file that ALREADY exists,...
-
Thank you, Techno.
I was too lazy to translate the code, especially since there are free online converters.
However, I believe that you are able to use the httpwebrequest cookie in the...
-
Well, if you explicitly, deliberately want a MOUSE CLICK, then you can disable spacebar/enter clicks on the buttons. (Although I wouldn't go with this since you should always be able to do as you...
-
You could ask the user if that indeed is the choice the user wants.
It's all a matter of design, just as incidentals and Shaggy has said.
For example: The user is downloading a file, the Cancel...
-
Yeah I can see why you would want to avoid 3rd party products but I'm afraid that's the easiest thing to do in this case, since there isn't much information on how to do that.
The best thing you...
-
Within that code you had to get the drive letter from the variable/resource drive.
For instance:
Dim driveletter As String = ""
Dim allDrives() As System.IO.DriveInfo =...
-
I usually use this delay since it doesn't pause the whole program
Dim d As Date = Date.Now
While Date.Now.Subtract(d).TotalMilliseconds < 1000
Application.DoEvents()
End While
The...
-
To get the drive letter you could do this:
Dim allDrives() As System.IO.DriveInfo = System.IO.DriveInfo.GetDrives()
For Each drive As System.IO.DriveInfo In allDrives
If drive.DriveType =...
-
That's true, I was thinking about that, and I also was thinking if the loop even is necessary.
Avoiding unnecessary loops is good practice since it may fasten up your program (in most cases, in some...
-
*EDIT* Sorry! That was for a custom control.
Try the following:
It wasn't working because you were trying to get the options. (For Each element As HtmlElement In...
-
You are unable to select an option within the subcategory menu because their values aren't what you expect. If you look at the DOM HTML source code of the form, you would see that these are the...
-
Okay, so that means that your code doesn't raise the onchange event on the website.
So you can force the control to perform the onchange event by invoking it:
Unit.InvokeMember("onchange")
On...
-
I think you should be able to copy the project folder, which usually resides within My Documents\Visual Studio 2008 (or 2010).
From within your copied project folder, you can open your .sln or...
-
What's not working, you need to give a little more information about what's not working, why it isn't and how you are trying to achieve your goal.
Do you get an error/exception? Does nothing...
-
The subcategory menu depends on the main category menu.
The subcategory menu populates when an onchange event is performed on the main category menu, so you should first of all confirm if your code...
-
You need to call a P/Invoke method.
InternetSetCookie is supposed to do what you're trying to achieve.
Here's a sample in C#:
private String url;
[DllImport("wininet.dll", CharSet =...
-
Shell isn't the recommended way to start processes in .NET
You should do something like this:
Dim psi As ProcessStartInfo = New ProcessStartInfo("C:\hi.exe")
psi.WindowStyle =...
-
I attempted this once but gave up.
I don't quite remember but I believe that I found an obscure DLL which kind of worked... KIND OF. :P
However, I've seen people saying that you can use...
-
I don't know about right but len is not good practice and is rather deprecated, I'd say.
Use value.Length and String.Format.
-
I agree with Evil_Giraffe, if it isn't absolutely necessary, don't get into it. Let your PC keep track of the memory jungle.
But if you do insist on doing this, you can use the Marshal object in...
-
To start one process first and when it has finished, start another, you could do it like this:
Dim psi1 As ProcessStartInfo = New ProcessStartInfo("notepad")
Dim psi2 As...
-
Hi!
You could do it like this:
Dim version As String = "0.9874"
version = version.Insert(3, ".").Insert(5, ".")
I don't know if that's the best way since there are other ways of...
-
Oh yeah -- Sorry for the double post --
But you have to format your drive as FAT32 to make it bootable.
If you format it to NTFS, BIOS won't be able to read it.
|
Click Here to Expand Forum to Full Width
|