If you do this you are essentially trying to run another application but starting on Form2. You should create an instance of the form such as Dim frmForm2 as new Form2 then any number of variations of hiding the main form, setting it as the owner etc... but then frmForm2.Show().
Cleoko gave you the right answer. A form resides inside an application. Actually it is a class. If your aim is to call another form while the first forms is displayed, you can create an instance for the second form. It is very simple as shown below. application.run statement is used to run another application what resides under the same or a different directory.
Dim 2ndForm as new Form2
'If you want to hide first form, use the followin statement.
What is the equivalent now though? If they were doing FileOpen(86, whatever) what is the equivalent in 2.0? Actually I dont understand how they were actually doing anything with that file by just opening it.
On top of what Duncan posted, CopyString has some SERIOUS limitations on it's use in the .NET Framework. Since an object can be moved at any time, CopyString can be passed invalid addresses unless the objects invloved are pinned in place.
What does this function do that you require the use of CopyString??
I ahve a rich text box on my form and I want it to, when you add text to it I want the program to dispaly the file size it will be when it is saved (hTM or RTF. i want it to display this on lblfilesize label.
Hi, My Application has a tray exe built in VB.The menu will be automatically refreshed in every second.If the tray menu is kept open, the menu jumps while refreshing. How can i avoid the tray menu from jumping. This problem is only in Windows Vista.
Thanks in advance