Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27348

Load a form on TabControl - Questions about it

$
0
0
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 TabControl, 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, knowing that I am on the beginning of the project: is copy and paste a good solution?

I hope to get help on this,

Thanks.

Viewing all articles
Browse latest Browse all 27348

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>