[Visual Basic .Net] - Create a Custom Control from Multiple Controls

Опубликовано: 28 Июнь 2026
на канале: Projetx7
7,225
49

Visual Basic Tutorial on Creating a New Control

In this tutorial, we'll see once again how to create your own control, but this time we'll create a control that belongs to the Controls group.

We'll look at two examples:

1- A GroupBox control containing a Label, Button, and TextBox. This can be added directly to the Form, and you can launch the application, enter a name, and click the button to display the name in a MessageBox.

2- A GroupBox control containing a PictureBox and a button. When you click the button, you can choose an image and place it in the PictureBox. While you could do this directly without creating a new control, the advantage of creating a new control is that you can add it at any time and even use it in other projects without writing the same code multiple times.

See Part 1, which covers many important things about creating a new control and classes in general:    • [Visual Basic.Net] - Comment Créer et Cust...  

SEE ALSO:

Useful Links:

Email: [email protected]
Twitter:   / projetx7  
Facebook:   / projetx7  
Google+: https://plus.google.com/1133206285547...
Blog: http://projetx7.blogspot.com/

--------------------------------------------
SUBSCRIBE!!!