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?

Try,
Response.Redirect("~/PageName.aspx", True)

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()

Sorry about that

Response.Redirect("~/PageName.aspx", True)
is for asp.net web forms

I'v been doing asp.net all week and got mixed up

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.

Can u explain wat exactly ur trying 2 do n i might be able to help more.

If you are using vb 2002 or 2003 then you have to use:
Dim frm as new Form1
frm.Show

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.