Switching pages in vb.net, please help.

  • Thread starter Thread starter m_evergreen
  • Start date Start date
M

m_evergreen

I have what I think is a simple problem and yet I can't seem to find a
solution. All I want to do is switch from one page to another within
the same vb.net project.

I expected frmThank.show to work, but it doesn't. I get the following
error:

error BC30456: 'Show' is not a member of 'PurchasePhone.frmThank'.

After viewing some of the postings within groups I found what I
thought might be a solution:

'Show thank you
Dim Thanks As New frmThank
'show new form
Thanks.Show()

but it results in the same error:

error BC30456: 'Show' is not a member of 'PurchasePhone.frmThank'.

I hope that someone can help me with this. I learned vb in version
6.0 and I was still at beginner level so vb.net is proving more
difficult than expected.

Thank you,
-M
 
Um...

Are you shure that frmThank is a Form (that which inherits
system.windows.forms.form, or the like.)

-CJ
 
Now that you mention it, no, I was not and it is not. What I have is,
well, this:

Inherits System.Web.UI.Page

Under these curcumstances how would I change pages? Can you help me? I
just tried .visible = true, but it seems to be pretty much ignoring
that. What I really want to do anyhow is close frmRep and switch to
frmThank...

Thank you,
-M
 
Thank you for the advice. It occured to me after I replied that asp.net
might be where I needed to go. I really appreciate your quick replies!

-M
 
Back
Top