![]() |
New window
Hi, I am new to all this, just learning VB 2005 express..
My question is when I place a button on the screen, what code do I need to add to open a new window for the application. Cheers Shane. |
First thing you should do, go to your local book store, read through a couple of the Visual Basic books. Go home research the titles of the books online and maybe look for some other places. second Google something like New Form in Visual Basic .Net (Visual Basic .Net is the current most common name for VB 2005 Express). First thing you have to do is create a second form. Second you need to initalize that form. Because a form is an Object you need to create a New instance of that Object. That's All I'll give. Find some resources, and post what you get, then I or others can help you some more. As a new poster always remember to Try it out yourself, and then when you cant get it, post the methods you did try, it will better help us understand what you are trying to do and in what way.
|
Put this code in the button:
me.hide <nameofsecondform>.show that's the most basic |
If you want to show a new form without adding a form to your project use this
Dim a As New Form a.Show() |
| All times are GMT -5. The time now is 1:40 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC