Visual Studio 2017 Mobile development
How controls are introduced and used: numeric controls
Smobiler development platform,. NET Mobile development
One, style one
We want to achieve the effect in the following actions:
- Drag a numeric control to the form interface from "Smobiler components" on the toolbar
- Modifying the properties of a numeric
- BackColor Property
Sets the background color of the control, which is set to "white" by default, 1;
Figure 1
If the property is set to "128, 255, 255", display the result 2, set interface 3;
Figure 2
Figure 3
- Backcoloralpha Property
Sets the control background color transparency, which is set to "255" by default, which is opaque, 4;
Figure 4
If this property is set to "0", the control's background color is fully transparent and is displayed as the back color of the Smobiler form design interface.
- Border Property
Sets the control border, which is set to "0,0,0,0" by default, 5;
Figure 5
If the property is set to "1,1,1,1", the control is surrounded by a border, display interface 6, set interface 7;
Figure 6
Figure 7
- BorderColor Property
Sets the control border color, which is set to "Black" by default, 8;
Figure 8
- Borderradius Property
Sets the angle of the control border, which is set by default to "0", that is, the control border angle is right angle, 9;
Figure 9
If this property is set to "10", the control is displayed as rounded corners, 10, and 11.
Figure 10 Display Interface
Figure 11 Setting up the interface
- Bordersize Property
Sets the border size of the control, which is set by default to "0.1", 12;
Figure 12
If this property is set to "10", the border of the control will be thicker, 13, figure 14;
Figure 13 Display Interface
Figure 14 Setting up the interface
- Enabled Property
Sets whether the control can respond to user interaction, sets the property to "True", and the control can interact with the user, 15;
Figure 15
- Foresize Property
Sets the control font size, which is set to "6" by default, and the control has a font size of 6, 16;
Figure 16
If you set this property to "12", the control's font size will be larger.
- ForeColor Property
Sets the color of the control font, the default setting is "Black", that is, the control font color is black, 17;
Figure 17
- Format Property
Sets the text format, which is empty by default. You can use this property to set the color, size, and so on for text.
- GenerateMember Property
Sets whether the control generates a member variable and sets the property to "True", the control can be referenced by another method, 18;
Figure 18
- Location Property
Make the control appear in the appropriate position (50, 32), 19;
Figure 19
- Modifiers property
Sets the visibility level of the control, the default setting is Private, and the other forms do not access the control, 20;
Figure 20
If you set the modifiers property to public, the control is accessible to other forms.
- Name property
Set the control name as "Numeric1", 21;
Figure 21
- Padding Property
Sets the control border content interval, the default setting is "0,0,0,0", that is, the control has no border content interval, 22;
Figure 22
If you set this property to "2,2,2,2", the spacing between the control and the border becomes larger.
- Size Property
Make the control size (45, 10), 23;
Figure 23
- Value property
Set the default value for the control, set the property to "1", that is, the value displayed by the control starts from 1 by default, 24;
Figure 24
- Variation Property
Set the control change value, which is set to "1" by default, that is, the control displays a value of 1, 25 for each change;
Figure 25
- Visible Property
Sets whether the control is displayed, sets the Visible property to "True", 26;
Figure 26
If the Visible property is set to False, the control cannot be displayed.
- MaxValue Property
Sets the maximum control value, which is set to "100" by default, that is, the control displays a maximum value of 100, 27;
Figure 27
- MinValue Property
Sets the minimum value of the control, setting the property to "1", which means that the control displays a minimum value of 1, 28;
Figure 28
- Smobiler Form Design Interface Display effect
Second, the mobile phone effect display
VS2017 Mobile Development (C #, VB. NET) How--numeric controls are used