|
-
Feb 22nd, 2002, 10:02 PM
#1
Thread Starter
New Member
form issues
i know this is trivial but i cant for the life of me ****ing find how to do this
simple really
how to load a separate form,
you got ur index form, then u want to call another form to be visible,
and its vb.NET
-
Feb 23rd, 2002, 06:16 AM
#2
Fanatic Member
I'm guessing you are using the old VB syntax of
form1.show
or something similar.
Under .net you need to do something like:
Code:
Dim f As New frmMain()
System.Windows.Forms.Application.Run(f)
Brian
(Fighting with the RightToLeft bugs in VS 2005)
-
Feb 23rd, 2002, 09:42 PM
#3
Thread Starter
New Member
yer i figured out a dif way,
i created my form frmLogon,
then under a buttons clik proceedure i declared a var as that form creating an instance of it then showing it
Dim frmLogon as frmLogon ' second frmLogon is the actual form
frmLogon.ShowDialog()
that does it
-
Feb 24th, 2002, 03:39 AM
#4
Fanatic Member
Yes, that also gets it.
Of course you are launching a modal form, but that's cool if that's what you want.
Brian
(Fighting with the RightToLeft bugs in VS 2005)
-
Feb 24th, 2002, 09:06 AM
#5
Fanatic Member
Then modal should be okay for that.
Brian
(Fighting with the RightToLeft bugs in VS 2005)
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
|