Recent content by Michaelk

  1. M

    Finding and Deleting a Line.

    Thanks for the reply. I had a look at both of the articles, but i've honestly got no idea where to start. I'm currently reading the txt file into a multiline textbox, is this the way to go? Or should i deal directly with the txt file? Thanks.
  2. M

    Finding and Deleting a Line.

    Hi. I've got a txt file with a list of websites. A new site on each line. In my app i've got a textbox, and a button. Once the button is pressed i'd like the app to read through the lines of the txt file untill it finds an exact match of the textbox, to a line in the txt file. Then i'd like the...
  3. M

    Option Strict.

    Ok, that makes sense now. I'll make sure that i use both in the future. Thanks a lot.
  4. M

    Option Strict.

    I've read in several places that Option Strict should be the first thing that any VB programmer does? I'm self taught, by books, fiddling and forums, and i've never used Option Strict. Is anyone able to explain to me what it actualy does, and the advantages/disadvantages of using it? Thanks.
  5. M

    Multiple Forms.

    Thank you sooooo much. That example was excelent, and i was able to integrate it well. Thanks again for your help, the problem had been driving me crazy for the last 2 months lol. Thanks again :)
  6. M

    Multiple Forms.

    Thanks for the reply. I did consider that, but wouldn't that way chew up more mem if there are several windows open? I was thinking that the easiest, and most efficient way would be to have a hidden form checking what forms are loaded. And when all the copies of Form1 are closed, then it closes...
  7. M

    super minor problem...Task List window

    Do you mean the task list in VS 2003? If so, have you tried going to View - Show Tasks - All?
  8. M

    Multiple Forms.

    Hi. I've written a web browser, but i have one problem. Due to multiple windows needing to be opened (New Windows), the same form may need to be opened multiple times (e.g Form1), simultaneously. The problem i have is that if the original form, Form1, is closed. Then the whole program closes...
  9. M

    Before Application Exit

    Thanks for the reply. It works well. I have it load my main form. But if i then load another form from the main form, and hide the main form, it closes the app? I'm using the following on my startup Module. Sub Main() Dim MainForm As New frmMain MainForm.ShowDialog() End Sub Is this alright...
  10. M

    Before Application Exit

    Ok, Great. Thank you.
  11. M

    Before Application Exit

    Hi, is there a way that i can run some code before the application exits? So that when the last form is closed, or the exit button is clicked, it runs a short piece of code before closing itself? The problem is that there is no way to know what form will be that last open, so can i put some code...
  12. M

    [Basic] Closing a form, from another form.

    That worked. I think it could have been because i didn't use: Option Explicit On Option Strict On But it's all good now. Thanks heaps for all of your help.
  13. M

    Error while deleting a file

    Could VS be using the file in the image list, so when you have VS open, the image is being accessed? I had this problem once.
  14. M

    [Basic] Closing a form, from another form.

    Hmm, I've been trying that, but it just won't work, i still get "Name 'MainForm' is not declared". :(. Logic tells me that i need to declare or link to the module for it to work? But then again, i could be totaly wrong. Thanks.
  15. M

    [Basic] Closing a form, from another form.

    Thanks. So to Add a new module, i simply go "Project" - "Add Module...". I then call it whatever i want, put the Private MainForm as frmMain into it, and it should work? I tried that, but i still get "Name 'MainForm' is not declared". I also tried putting the Private MainForm as frmMain into...
Top Bottom