Connecting forms

  • Thread starter Thread starter harrypotter
  • Start date Start date
H

harrypotter

I'm a new comer to the vb.net field. & I'm looking for some help on
these questions.

01) Is there any limit to the number of form which can add to a
certain project ?

02) I want to know how to connect a number of forms, like 1, 2, 3, 4
etc together. I want it to happend when I'm clicking a certain button
from the first form & I'm going to the second page. Then I'm clicking a
certain button from the second form & I'm going to the third page. (
Like " Next" & "Previous" )

03) I have created several forms including buttons, picture boxes,
labels, text boxes,etc etc. And I want to connect each one of them to a
certain form seperately. You know, like I'm clicking various buttons &
I 'm going to various forms. How do I do that ?

I mean, I don't know the codin' & there's no other way I can find them.
 
01) Is there any limit to the number of form which can add to a
certain project ?
No.


02) I want to know how to connect a number of forms, like 1, 2, 3, 4
etc together. I want it to happend when I'm clicking a certain button
from the first form & I'm going to the second page. Then I'm clicking a
certain button from the second form & I'm going to the third page. (
Like " Next" & "Previous" )

03) I have created several forms including buttons, picture boxes,
labels, text boxes,etc etc. And I want to connect each one of them to a
certain form seperately. You know, like I'm clicking various buttons &
I 'm going to various forms. How do I do that ?

You can do this in the "classic" way by removing the "runat=server"
attribute from the automatically generated form and then setting the action
attribute to another page which the user will automatically be redirect to.
BUT...in ASP.NET, you don't need to necessarially create different pages for
this.

You can just create all the form data inside of one form and have different
controls be hidden until necessary. You can use the page's IsPostBack
property to determine when the first form is submitted and then use the
click event of other buttons to determine where to go from there.
I mean, I don't know the codin' & there's no other way I can find them.

Well, you are going to have to learn how the Page class operates and how to
write the .NET language code itself, we can't just give you code for this
because there is too much to explain here.
 
Back
Top