0

Hi all, I have a simple question. But tell me please.
How can I open another form which is being the same project by pressing the button?

5
Contributors
7
Replies
8
Views
9 Years
Discussion Span
Last Post by Jx_Man
0

Hi all, I have a simple question. But tell me please.
How can I open another form which is being the same project by pressing the button?

Put this in the button.Click sub

formname.show()
0

I'm writting
"Private Sub Prog_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Prog.Click
FPRO.Show()
End Sub"
But I can't do it because :"For the reference to the member which is not used jointly, is required the reference to object",- said VB.

0

First declaration a new object for the Form you have to called. So you can use Dim do declare then you can use the new object to call a form as you want.
Example:
The Form Name is CalledForm

Dim call as new CalledForm
call.show()

if you want to close your first Form you can use Dispose().

OK.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.