Transfering to another form

Can someone please help
I don't know how to transfer from one form to another in a windows application.
I can't use server.transfer because the name space system.web is not on the list of namespaces inside the form.
Any ideas...Thanks...X
[253 byte] By [codefund.com] at [2007-12-16]
# 1
can you explain more what you need? not sure what you mean by "transferring to another form" do you mean show another form?
codefund.com at 2007-9-8 > top of Msdn Tech,Windows Forms,Windows Forms General...
# 2
Yes, that's correct
I have 2 forms. The 1st form has a button. When I click on it I want to go to another form.
That's all but I can't use server.transfer

thanks...x

codefund.com at 2007-9-8 > top of Msdn Tech,Windows Forms,Windows Forms General...
# 3
Yes. That's what I mean
I want to click on a button on Form1 that will take me to Form2
I appreciate your assistance!!!
codefund.com at 2007-9-8 > top of Msdn Tech,Windows Forms,Windows Forms General...
# 4
Well, certainly Server.Transfer won't work unless you're displaying pages using IIS. With Windows forms, that's generally not how you're loading forms (unless you've taken special steps to load the app as an HREF exe by specifying a URL where you've posted your forms).

If you mean "how do I load another form?" then it's easy:

Dim frm As New YourForm()
frm.Show

That should at least get you started. There are fine points and options, as well, but this is enough code for the simplest case.

codefund.com at 2007-9-8 > top of Msdn Tech,Windows Forms,Windows Forms General...
# 5
Thank you
thank you
Thank you
It worked
codefund.com at 2007-9-8 > top of Msdn Tech,Windows Forms,Windows Forms General...