|
-
Jun 28th, 2002, 05:51 AM
#1
Thread Starter
G&G Moderator
Using Show
Hello everyone,
I have recently upgraded to Visual Studio.NET, and although i had read, it was a changed language, i didnt know it would be like this. I am pleased with its capabilities, but cant figure out something very basic in VB6 and below. Show I dont know how to show another form. Stupid i know, but if some1 could tell me, this would be great
Sorry about this, heh
«°°phReAk°°»
Visual Studio 6, Visual Studio.NET 2005, MASM
-
Jun 28th, 2002, 06:07 AM
#2
Registered User
when you design a form in design mode, usually the form has a name, Form1.
so what you want to do then is say
VB Code:
Dim TestForm as New Form1
TestForm.ShowDialog()
-
Jun 28th, 2002, 04:03 PM
#3
Addicted Member
If you want to show it as a modal for ie. Dialog box then :
dim frm as new myformname
frm.showdialog()
Else
dim frm as new myformname
frm.show()
Note: If it is the main start-up form then
dim frm as new myMainForm
Application.Run(frm)
Hang in there - we all got caught -
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|