Search:

Type: Posts; User: Runesmith

Page 1 of 11 1 2 3 4

Search: Search took 0.04 seconds.

  1. Replies
    1
    Views
    488

    Re: read in variable from text file

    You can start by reading up in MSDN on the Environment class, paying special attention to ExpandEnvironmentVariables() method.
  2. Replies
    3
    Views
    669

    Re: Open .txt file

    If I read between the lines, you probably want the file to open up in notepad, right?

    If that is so, use process.start to start notepad.exe, and specify the location of the text file as a command...
  3. VS 2005 Re: Problem of getting more than one array

    Glad to be of help, but please don't insult any of the helpful members here. Jmc is one of the most knowledgeable people here, and I have learnt a lot by reading his posts.
  4. VS 2005 Re: Problem of getting more than one array

    Your matches1 collection returns all matches the regular expression found. You can find out the number of matches that were returned by checking the count property of the collection (eg....
  5. Replies
    5
    Views
    858

    VS 2008 Re: hi i have a question on private site

    Navigate to the site using internet explorer, then hit F12. Expand HTML section, then expand the Body section. Now look closely inside the body. If a script is being used, you will see a section...
  6. Thread: Function

    by Runesmith
    Replies
    13
    Views
    1,392

    Re: Function

    You don't need an Else clause here at all. If save() is not true, then don't do anything - the form will not close.
  7. Replies
    36
    Views
    2,111

    Re: Access Dynamic Controls

    Sorry to butt in, but I just wanted to check:

    You did remove the line

    Dim myCheckBoxes As New List(Of CheckBox) from within the For...Next loop, right? If you didn't, you should do so.
  8. Thread: search?

    by Runesmith
    Replies
    13
    Views
    1,139

    VS 2010 Re: search?

    You would need to do a recursive search of all folders on every hard disk on the system. This could be very time consuming.

    Can't you put the installation path of maingame.exe in a registry entry...
  9. Replies
    9
    Views
    886

    VS 2008 Re: ListBox Interactivity

    Are the values hard-coded, or do you read them off from somewhere (database or text file etc)?
  10. Thread: search?

    by Runesmith
    Replies
    13
    Views
    1,139

    VS 2010 Re: search?

    Do you mean, you need to get the path to the application data folder?



    Dim appDatapath As String = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)
  11. Replies
    9
    Views
    886

    VS 2008 Re: ListBox Interactivity

    Let's assume you have a ListBox1 and ListBox2, and a button called Button1 (that does the adding). So all you need to do is, when button1 is clicked, add to ListBox2.Items collection, the...
  12. Replies
    3
    Views
    2,745

    Re: Textbox maximum value

    Have you tried using a masked text box?
  13. Replies
    3
    Views
    690

    Re: index textbox

    This thread was just discussing the same problem yesterday. http://www.vbforums.com/showthread.php?t=623676
  14. VS 2008 Re: Copy file to network share with username/pass passed in the code

    Ok, I think I missed this part in your first message: "What I'm basically looking for is to not have to map a drive on the users computer."

    Without mapping the shared drive, the users computer...
  15. Replies
    7
    Views
    740

    VS 2008 Re: Need help

    Your description says almost nothing about what you want to achieve.

    The first step is to write down an unambiguous description of what you are trying to create. You can't build a physical product...
  16. Thread: Controls

    by Runesmith
    Replies
    17
    Views
    2,205

    Re: Controls

    Control is a base class, and does not have the properties of some of the other classes built on this class. You can find a list of the members of the Control class here:...
  17. VS 2008 Re: Copy file to network share with username/pass passed in the code

    Googling "vb.net impersonate user" should get you started.
  18. Replies
    40
    Views
    2,537

    Re: Parsing Help Please

    None of the so-called "standards" stay standards, I'm afraid. I run in to similar problems daily whenever I need to extract data from the medical devices in our hospital for my research projects....
  19. Replies
    40
    Views
    2,537

    Re: Parsing Help Please

    Hmm...it seems to have turned to green for some reason. Those are the lines above the red section.
  20. Replies
    40
    Views
    2,537

    Re: Parsing Help Please

    Since there is no fixed length to the text file, I guess the loop would be an infinite loop that only ends when the EndOfFile is reached when you attempt to read the next line.
  21. Replies
    8
    Views
    1,265

    VS 2008 Re: File Problems

    Nice thing about the internet is that additional information is often one link away. While you are on the page that TG pointed to, try clicking on the link that says: system.io.filestream
  22. Replies
    40
    Views
    2,537

    Re: Parsing Help Please

    No it doesn't. The code closes the current record only if:
    Hasdata is true (which becomes true when the first 13 is encountered) AND
    TwentyDetected is true (which means at least one line starting...
  23. Replies
    8
    Views
    1,154

    Re: VB newbie... Need Help on arrays...

    You want to get the number of letters in the text contained in textbox1, right?


    Dim NumberOfLettersInTextBox1 as Integer = TextBox1.Text.Length()
  24. Replies
    40
    Views
    2,537

    Re: Parsing Help Please

    Ok, then getting the header section separated is simple. You just need to take the first 4 lines of the text file.

    So I assume the rule for a record would be: record must start with "13" line (can...
  25. Replies
    40
    Views
    2,537

    Re: Parsing Help Please

    What are the rules used in this report file? For example,
    1. Is the header always 3 lines?
    2. Does a record always begin with "13BP..." ?
    3. Is the blue section just one record or is it actually 2...
  26. Replies
    8
    Views
    1,154

    Re: VB newbie... Need Help on arrays...

    Where do you want to store the length of the text? If you want to store it in an integer variable called Length, you could use:


    Dim Length as Integer = asd.length
  27. Re: VB-Disable Ctrl Alt Del in XP, Hide TaskBar, Disable Windows keys

    You mean, you have actually managed to write a global keyboard hook in VB.net? Most of the references I've looked up just tell me to forget it and use eventVB.
  28. Re: VB-Disable Ctrl Alt Del in XP, Hide TaskBar, Disable Windows keys

    Does anyone with VB6 happen to have a published build of the dll? I can't compile this project on VB.net 2008 as the conversion is a herculean task.
  29. Thread: controls

    by Runesmith
    Replies
    9
    Views
    859

    Re: controls

    First of all, you already know how to get the data from the database, right? You know how to assign the data to text boxes, right? So what is so difficult about assigning the same data to a combo...
  30. Re: How can i delete .txt file only in folder ?

    It would be great if you could post the complete error message, as Hack suggested.

    Does the error occur in the first iteration of the loop? Or does it happen only at a specific point, or when it...
  31. Thread: controls

    by Runesmith
    Replies
    9
    Views
    859

    Re: controls

    What level of programming experience do you have?
  32. Replies
    4
    Views
    820

    Re: Minimize all application

    Take a look here,
    http://coder000.com/minimize-all-windows-through-keybd_event-in-vb-net/

    which shows how to use the keyb_event API to send "CTRL+m" to minimize all windows. After calling the...
  33. Replies
    7
    Views
    675

    Re: Startup Application

    Add a shortcut to your program in the windows startup folder
  34. Replies
    7
    Views
    867

    VS 2008 Re: adding a list to a list

    Is total properly declared as New List (of myObject)?

    The only way I could get a null reference exception was when I didn't declare total as a new list. But in that case, it showed up in the IDE...
  35. Re: How can i delete .txt file only in folder ?

    If it gives the "File in use" error while trying to delete, it probably means that the copy operation was not complete before you attempted to delete the file.

    You can try separating the copy and...
  36. Replies
    7
    Views
    867

    VS 2008 Re: adding a list to a list

    It could be because of the implicit conversion you are doing in the loop, eg. how would the compiler know what "item" is supposed to be?

    If you change it to


    For Each item as myObject In page...
  37. Thread: controls

    by Runesmith
    Replies
    9
    Views
    859

    Re: controls

    You should separate the questions and post them as individual threads, because different people will be able to help in different areas.

    First question:
    If you have the first name as a string,...
  38. Re: How can i delete .txt file only in folder ?

    You left out the most important piece of information. What is the error?
  39. VS 2008 Re: Grab / display parts of text in source (webbrowser)

    It is quite easy to get the inner text of the elements in the table rows. If your web browser control is called WebBrowser1, for example, you can access the HTML document using WebBrowser1.document...
  40. Replies
    5
    Views
    857

    Re: Links from Google

    Wouldn't you get what you need by using element.InnerText instead of innnerHTML?
Results 1 to 40 of 404
Page 1 of 11 1 2 3 4



Click Here to Expand Forum to Full Width