how do i combine 2 forms with 1 button..

sean123voth

Member
Joined
Jun 6, 2006
Messages
5
Location
AZ
Programming Experience
Beginner
how do i combine 2 forms with 1 button


i need the code for the button thanks:confused:
 
You mean open one of two forms with the click of a button?

VB.NET:
Private OpenFormOne as boolean = false

'Button Click Event

VB.NET:
If me OpenFormOne then
Dim Frm1 as new form1
Frm1.show
Else
Dim Frm2 as New Frm2
Frm2.show
 
i mean i have form 1 and form 2 and when i click on the button on form 1 it will open up the other form i have with the stuff on form 2

??????????????????????????????????????????????????????????????????????????????????????
 
Sean, you have a great knack for asking questions that make no sense. You can't combine two forms. Each form is a distinct object. Even your second post does little to clarify your request. Take the time to explain your situation and then maybe we won't have to guess what you want. If it takes 5, 10, 15 or more lines to explain then make the effort to type the 5, 10, or 15 lines. Your post doesn't have to be one line long. It needs to be as long as it takes to clearly explain what it is you want. If you can't make the effort to explain then how can you expect us to make the effort to help?
 
Just out of curiosity, are you trying to get on how to create an MDI container/parent?

With a MDI form, you can create new forms in the current form.. for example:

mdi_example.PNG


Source:
Download

Hope I helped ;)
 
Back
Top