This tutorial takes the developer through a way to create resizable forms in Visual Studio with NO CODING Required.
Auteur Stuga Engineer | Dernière modification 6/04/2020 par Stuga Engineer en cours de rédaction ⧼frevu-button-review-label⧽
This tutorial takes the developer through a way to create resizable forms in Visual Studio with NO CODING Required.
Resizable, Forms, Visual, Studio, Screen, Resolution Easily_resizable_forms_for_any_screen_resolution_in_Visual_Studio_ExeForm.jpg
On the start screen in Visual Studio, click on the "Create a New Project" button.
From the next screen
Add your first panel to the page by clicking on the panel option in the toolbox area, then clicking anywhere on the form.
Within the Layout section of the panel 1 properties, select Dock Bottom as in picture 1, your screen should look like picture 2
Add a new panel inside the existing panel by clicking on panel in the toolbox and clicking anywhere within panel 1, this will create panel 2, in its format properties, dock this to the right. then add a button into panel 2.
Your screen should be similar to the picture shown.
Add a panel in the main portion of the form, and dock it to the top, Insert a label into this panel (panel 3) and set properties as follows
Dock: Fill, (the centre box)
AutoSize: False
Text Align: Middle Centre
Border Style: Fixed Single
you should see your form as the picture
create another panel in the area between the header and footer, dock it to the right. Note that because this panel was placed after the header and footer panels, it only fills the area between them. Being to Front and Send to back will amend this.
To the left of this, add a splitter, then dock that to the right as well
Add a label into the right hand panel
Add a label to the left of the splitter and set the properties as follows
AutoSize: False
Text Align: Middle Centre
Border Style: Fixed Single
Back Colour: Control Dark
Dock: Fill
Compile and run the project by clicking on the start button
resize the running form, note how the button stays in the bottom corner and everything resizes and centralizes to suit the form
position your mouse on the line between the right panel and label 2, click the left mouse button and you will see the icon change to a splitter icon, you can resize the right hand panel in the running program by dragging the mouse from left to right while holding the left mouse button.
Was'nt that Easy?
en none 0 Draft
Vous avez entré un nom de page invalide, avec un ou plusieurs caractères suivants :
< > @ ~ : * € £ ` + = / \ | [ ] { } ; ? #