Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Dec 11th, 2006, 7:26 PM   #1
Auzzielink
Newbie
 
Join Date: Dec 2006
Posts: 1
Rep Power: 0 Auzzielink is on a distinguished road
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.
Auzzielink is offline   Reply With Quote
Old Dec 11th, 2006, 9:20 PM   #2
PhilBon
Hobbyist Programmer
 
PhilBon's Avatar
 
Join Date: Nov 2005
Posts: 172
Rep Power: 3 PhilBon is on a distinguished road
Send a message via AIM to PhilBon Send a message via MSN to PhilBon
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.
PhilBon is offline   Reply With Quote
Old Dec 12th, 2006, 6:23 AM   #3
alphonso
Programmer
 
Join Date: Dec 2005
Location: Philippines, where the seasons are: hot, and hotter
Posts: 72
Rep Power: 3 alphonso is on a distinguished road
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
alphonso is offline   Reply With Quote
Old Dec 12th, 2006, 1:41 PM   #4
bigguy
Professional Programmer
 
bigguy's Avatar
 
Join Date: Sep 2005
Location: Arkansas
Posts: 298
Rep Power: 0 bigguy is an unknown quantity at this point
Send a message via AIM to bigguy Send a message via MSN to bigguy Send a message via Yahoo to bigguy
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.
bigguy is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:55 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC