Jump to content
Xtreme .Net Talk

Recommended Posts

  • *Experts*
Posted

You need to first create an instance of the form and the show it:

'create a new isntance
Dim f2 As New Form2
'use the Show method to show the form
f2.Show()

Posted

StartupFrm

 

Hi, that works, but it dims a new form. In the solution explorer, I have another form already created, I want to load that form not create and open a new one. What am I missing here? thanks.

 

Right-click solutions explorer, and go to Properties|Start-up frm and select a form to load when program executes. I hope that helps.

 

Take care,

Lori :D

Take care,

Lori :D

--DreamWEBCatcher.com

Posted

Hi, yes that works, thanks very much.

 

It is actually enough to get me going on what I'm doing. But juts out of curiousity, if I do want to load another form in the project from an existing form, how do I do that?

 

thanks.

Posted
Hi, yes that works, thanks very much.

 

It is actually enough to get me going on what I'm doing. But juts out of curiousity, if I do want to load another form in the project from an existing form, how do I do that?

 

thanks.

 

Shared Sub Main()
System.Windows.Form.Application.Run(New Form1)
End Sub

Type that code at the top of the form. Good luck.

 

Take care,

Lori

Take care,

Lori :D

--DreamWEBCatcher.com

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...