How to display forms one by one

suneetha

New member
Joined
Nov 23, 2007
Messages
3
Programming Experience
Beginner
Hai,
I am new to vb.net..My main form say f1 has 4 check boxes named as c1,c2,c3,c4 and two buttons say b1,b2.I created 4 more forms(fc1,fc2,fc3,fc4). These forms can be displayed based on the checked status of the check boxes. My scenarion would be like this "In my main form First I ll select the whatever checkboxes I want,after that I clicked on button b1. Upon clicking on the button it displays the forms corresponding to checked state of checkbox will be displayed one by one."
For example If i select c1,c2 checkboxes( the forms corresponding to this checkboxes are fc1,fc2) and if i press button b1 it displays the both forms
(fc1 and fc2) simultaneously..I would like to display these forms one by one
(i.e. first fc1 form will be displayed after closing this form fc2 will be displayed)
Can anyone help me...
 
VB.NET:
sub b1_click(....) handles b1.click
  if c1.checked then fc1.showdialog()
  if c2.checked then fc2.showdialog()
  if c3.checked then fc3.showdialog()
  if c4.checked then fc4.showdialog()
end sub
 
Back
Top