type in your query to search makeyougohmm
Things that ... make you go hmmtechnology music video art news reviews and muse on the web

April 18, 2004

.NET - How to add a new Windows Form

default — by TDavid @ 7:40 am PST

Visual Basic 6 and .NET handle forms somewhat differently. To add a new Windows form to an existing project:

STEP 1. From Visual.NET dropdown: PROJECT -> Add new Item (shortcut: CTRL + SHIFT + A)
STEP 2. Select Windows Form and choose a name for the form class like frmAbout for say an About dialogue box
STEP 3. Where you want to show the new fom add the following code:

Dim frmAbout as New frmAbout

STEP 4. To display the form use one of the following:

To allow the user to navigate on other windows use Show

frmAbout.Show()

To force the user to respond to the form use coverShowDialog

frmAbout.ShowDialog()

~~~~~~~~~~
Reference:
page 140-142 - Visual Basic for Windows.NET by Harold Davis

Did this post make you go hmm?

F = please no more posts like thisD = not among your best stuffC = average postB = good post, I liked itA = great post, please create more like this (Hmm, no ratings yet)

Loading ... Loading ...

RSS Feed comments for this post No Comments »

Your feedback is welcome below
TrackBack URI: http://www.makeyougohmm.com/20040418/697/trackback/

Leave a comment


By leaving a comment you consent to the Official Hmm Comment Policy

Return Home


Copyright 2003-2008 KMR Enterprises All Rights Reserved