Hi friends,
I have One main form and there are some sub forms. I have already created the sub forms independently. In the main form i have menu controls.
For instance Main form--Managementform
menu control in mainform - Management(main menu)
-student(sub menu)
-teacher(sub menu)
when i open sub menu student That contain three tab pages. 1.for student personal registration,2.for student contact registration 3.studemt academic registration. what i did was three forms have been created independently and data transformed from login page to main page and main form to sub forms. now i want to add this forms to tab pages without loss of the data transfer between pages. because data transfered through form constructor methods. is it possible to do this? if so please tell me how to that.
Loading
VulpesPosted Aug 14, 2012, 5:11 AM
However, for the record, you can embed a form (as such) by changing its TopLevel property to false before adding it to the container's Controls collection.
Sukesh MarlaPosted Aug 13, 2012, 11:06 PM
You windows form is dereivied from Form Class, Just change it to UserConrtrol..Thats it
Find attached zip for demo.
Your Response is important to use. Please Check This is Currect Answer, if it helped
baskaran chellasamyPosted Aug 13, 2012, 3:10 PM
baskaran chellasamyPosted Aug 13, 2012, 3:10 PM
Sukesh MarlaPosted Aug 13, 2012, 2:34 PM
every window form is derived from Form class, just change it UserControl, no need to change anything else.(do it for all three child forms)
and now u can simply do like follow.
tabControl1.TabPages[0].Controls.Add(new FrmStudent());
tabControl1.TabPages[1].Controls.Add(new FrmTeacher());
Hope It Helped. Please Check This is Currect Answer.