July 14th, 2003, 09:08 AM
Execution to another form
I have two forms to my program right now. I have a command on my first form that opens up the second form and is "supposed" to load a txt file into a listbox. But the command still wants to load that txt file on my first form and not my second. How do I make it so the command notifies that my listbox is in another form?
July 14th, 2003, 02:14 PM
When you load the Form2, you can put LoadTxt function to load the string to Form1.ListBox.
For the Visual Basic, when you want to call other object form's subobject or function, you just call like this:
So, you call Form2's object or method from Form1. also you can call form1's object or method from Form2.
you can go to the MSDN Library or Microsoft wb site Online MSDN to the detail info.
Hope it helps.
July 14th, 2003, 05:19 PM
Yeah, I'll try it out. I appreciate it.