Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (edited)

Well, I am creating a multi form application in Visual Basic .Net, and I am having some issues...

 

I created 2 forms. FormMain, and FormWiz

 

I then ran the application after placing controls on the forms, and programming them a bit.

 

My second form didn't show up!

 

At first, i was thinking that this would be like visual basic 6.0, and you just set the visible property to true when you wanted to show the form. I was stunned when there wasn't a visible property...

 

Then I went on to MSDN. They told me that this should work:

 

Dim MyNewForm As New FormWiz
MyNewForm.Show()

 

So I tried it, and wouldn't you know it, it doesn't work...

 

Then when I was scrolling through all the options after the dot after MyNewForm, I found the visible property. I set it to true:

 

MyNewForm.Visible = True

 

And ran the application... Still nothing...

 

I'm confused as to how I can set the visible property to true and false when it isn't in the properties page on the design state.

 

I'm also confused as how to show my form...

 

I'm very confused... Please Help Me...

 

~Griffyboy0~

Edited by griffyboy0
  • *Experts*
Posted

If that's the case, then the button click event handler probably

isn't being called. Make sure that the event handler has the

correct signature and it has the Handles statement.

 

For example, if the button was called Button1, it'd look like this:

Private Sub Button1_Click(Sender As Object, e As EventArgs) Handles Button1.Click
Dim MyNewForm As New FormWiz
MyNewForm.Show()
End Sub

"Being grown up isn't half as fun as growing up

These are the best days of our lives"

-The Ataris, In This Diary

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...