How to set the Location of CheckBox in C#?

Configurare noua (How To)

Situatie

The CheckBox control is the part of windows form which is used to take input from the user. Or in other words, CheckBox control allows us to select single or multiple elements from the given list. In CheckBox, you are allowed to set the coordinates of the upper-left corner of the checkbox control relative to the upper-left corner of its form using the Location property of the CheckBox.

Solutie

Pasi de urmat

Create a windows form as shown in the below image:

Visual Studio -> File -> New -> Project -> WindowsFormApLightbox

Drag the CheckBox control from the ToolBox and drop it on the windows form. You can place CheckBox anywhere on the windows form according to your need.

After drag and drop you will go to the properties of the CheckBox control to set the location of the CheckBox on Windows form by using Location property.

Output.

Tip solutie

Permanent

Voteaza

(9 din 18 persoane apreciaza acest articol)

Despre Autor

Leave A Comment?