Group Box and Picture Box in Windows Forms

Here I will explain how to use a Group Box and Picture Box in a Windows Forms form, in a previous article I explained password protection using code.

GroupBox

Other controls can be placed in a GroupBox like a login form. When designing the interface in Windows Forms, you can use this control to create the shape.

Drag and down a group box from the toolbox it will look like this.

 Windows Forms

PictureBox

Picturebox provides a rectangular region for an image. It supports multiple formats of images.

Step 1. Login form

First, create a login form with 2 labels 2 TextBoxes, and 1 button.

Step 2. Group box

Now drag down a GroupBox and place the login form into the Groupbox by selecting this form (shift+click).

Groupbox

Step 3. PictureBox

Now drag down a PictureBox.

PictureBox

It will look like this and for getting the picture click on the sidebar option and select the image.

SideBar option

Now click OK; you will then show this picture in the picture box.

Step 4. Run

Now run your application.

Run

You can go to my Blog munesh-blog