View Single Post
Old 12-26-2013, 09:49 PM   #1
Surka
IT dude
 
Join Date: Aug 2013
Location: Where you live
Posts: 41
Thanks: 5
Thanked 0 Times in 0 Posts
Surka is on a distinguished road
Question Load form on TabControl

Dear all,
I am working on a VB .Net project, with Visual Studio 2013.
Currently I am using Windows Forms with the following design:
  • MainForm with a MenuStrip and a TabControl.
  • newUserForm, with controls in it to create a new user.
I want to load the newUserForm on the TabContro, and I read I have 2 options, and 2 questions came out:
1 - Copy an paste code from newUserForm to the MainForm, and copy and paste controls to the TabControl.
Should I paste the code from newUserForm_Load into MainForm_Load or into TabControl_Click?

2 - Make of newUserForm a control.
How do I convert the form into a Control?
Also, keep in mind that I am on the beginning of the project: is copy and paste a good solution?

I hope to get help on this,

Thanks.

Surka is offline   Reply With Quote