Search:

Type: Posts; User: Zeelia

Page 1 of 13 1 2 3 4

Search: Search took 0.03 seconds.

  1. Thread: PictureBox Help

    by Zeelia
    Replies
    5
    Views
    2,416

    Re: PictureBox Help

    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...
  2. Replies
    6
    Views
    1,400

    Re: Search a string in process RAM

    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...
  3. Replies
    5
    Views
    1,059

    VS 2010 Re: Get All Emails On A Page

    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....
  4. Replies
    5
    Views
    1,059

    VS 2010 Re: Get All Emails On A Page

    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
  5. VS 2010 Re: how to get content from a url ( not type html ) by vb.net

    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...
  6. Replies
    6
    Views
    1,776

    VS 2008 Re: NAT tcp/ip

    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...
  7. Replies
    25
    Views
    9,632

    Re: VB.net and MSWINSCK.ocx

    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...
  8. Replies
    25
    Views
    9,632

    Re: VB.net and MSWINSCK.ocx

    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
  9. Replies
    3
    Views
    767

    VS 2010 Re: Shorter code

    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)
  10. Replies
    9
    Views
    22,136

    VS 2010 Re: Hiding Window of external process

    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...
  11. Thread: Timer in vb.net

    by Zeelia
    Replies
    9
    Views
    2,586

    VS 2010 Re: Timer in vb.net

    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.
  12. Thread: Timer in vb.net

    by Zeelia
    Replies
    9
    Views
    2,586

    VS 2010 Re: Timer in vb.net

    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...
  13. Thread: Export to .CSV

    by Zeelia
    Replies
    15
    Views
    11,733

    VS 2010 Re: Export to .CSV

    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.
  14. Re: noob question using own sub/functions

    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 =...
  15. Thread: Export to .CSV

    by Zeelia
    Replies
    15
    Views
    11,733

    VS 2010 Re: Export to .CSV

    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...
  16. Re: noob question using own sub/functions

    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()
    ...
  17. Replies
    6
    Views
    3,176

    VS 2010 Re: ca2122 VB.net ! WHO KNOW HOW FIX THIS?

    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...
  18. Replies
    9
    Views
    3,175

    Re: How to create a new file in VB?

    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,...
  19. Thread: httpwebrequest

    by Zeelia
    Replies
    11
    Views
    2,889

    VS 2008 Re: httpwebrequest

    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...
  20. Replies
    12
    Views
    26,120

    VS 2010 Re: Remove focus from all controls

    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...
  21. Replies
    12
    Views
    26,120

    VS 2010 Re: Remove focus from all controls

    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...
  22. Replies
    4
    Views
    7,369

    Re: Converting PDF to multipage tiff

    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...
  23. Replies
    9
    Views
    5,894

    VS 2010 Re: Need a master VB.Net guy/gal...

    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 =...
  24. Replies
    9
    Views
    5,894

    VS 2010 Re: Need a master VB.Net guy/gal...

    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...
  25. Replies
    9
    Views
    5,894

    VS 2010 Re: Need a master VB.Net guy/gal...

    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 =...
  26. VS 2010 Re: Fill a combobox in a website! Please help me.

    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...
  27. VS 2010 Re: Fill a combobox in a website! Please help me.

    *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...
  28. VS 2010 Re: Fill a combobox in a website! Please help me.

    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...
  29. VS 2010 Re: Fill a combobox in a website! Please help me.

    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...
  30. Replies
    3
    Views
    2,933

    Re: How do I clone a VB.NET project?

    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...
  31. VS 2010 Re: Fill a combobox in a website! Please help me.

    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...
  32. VS 2010 Re: Fill a combobox in a website! Please help me.

    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...
  33. Thread: httpwebrequest

    by Zeelia
    Replies
    11
    Views
    2,889

    VS 2008 Re: httpwebrequest

    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 =...
  34. Thread: Start minimised

    by Zeelia
    Replies
    5
    Views
    729

    Re: Start minimised

    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 =...
  35. Replies
    4
    Views
    7,369

    Re: Converting PDF to multipage tiff

    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...
  36. Replies
    8
    Views
    834

    VS 2008 Re: Formatting a String

    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.
  37. Replies
    8
    Views
    1,124

    Re: allocate chunk of memory?

    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...
  38. Replies
    9
    Views
    5,894

    VS 2010 Re: Need a master VB.Net guy/gal...

    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...
  39. Replies
    8
    Views
    834

    VS 2008 Re: Formatting a String

    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...
  40. Replies
    4
    Views
    1,690

    VS 2010 Re: Formatting Removable Drives using vb code

    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.
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width