![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Newbie
Join Date: Dec 2006
Posts: 1
Rep Power: 0
![]() |
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. |
|
|
|
|
|
#2 |
|
Hobbyist Programmer
|
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.
|
|
|
|
|
|
#3 |
|
Programmer
Join Date: Dec 2005
Location: Philippines, where the seasons are: hot, and hotter
Posts: 72
Rep Power: 3
![]() |
Put this code in the button:
me.hide <nameofsecondform>.show that's the most basic
__________________
"The most incomprehensible idea about the universe is that it is comprehensible" - Albert Einstein |
|
|
|
|
|
#4 |
|
Professional Programmer
|
If you want to show a new form without adding a form to your project use this
Dim a As New Form a.Show()
__________________
Forgiveness is the fragrance that the violet sheds on the heal that has crushed it. - Mark Twain Destruction leads to a very rough road, but it also breeds creation. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Char[11] -> LPCWSTR | Kilo | C++ | 5 | May 30th, 2006 3:47 AM |
| Download Blocker Finished - Random Text in Window Title? | bigguy | Visual Basic | 1 | Jan 13th, 2006 1:05 PM |
| GUI Progress Bar | badbasser98 | C++ | 55 | Nov 4th, 2005 7:28 AM |
| Arranging Views of Project Explorer, Property window and Form Layout | java_roshan | Visual Basic | 6 | Sep 30th, 2005 2:55 PM |
| New Window | Chris Weimer | HTML / XHTML / CSS | 3 | Sep 20th, 2005 9:18 AM |