VS2017 Mobile Development (C #, VB. NET) How--numeric controls are used

Source: Internet
Author: User

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:

    1. Drag a numeric control to the form interface from "Smobiler components" on the toolbar

    1. Modifying the properties of a numeric
      1. 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

    1. 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.

    1. 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

    1. BorderColor Property

Sets the control border color, which is set to "Black" by default, 8;

Figure 8

    1. 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

    1. 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

    1. 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

    1. 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.

    1. 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

    1. 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.

    1. 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

    1. Location Property

Make the control appear in the appropriate position (50, 32), 19;

Figure 19

    1. 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.

    1. Name property

Set the control name as "Numeric1", 21;

Figure 21

    1. 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.

    1. Size Property

Make the control size (45, 10), 23;

Figure 23

    1. 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

    1. 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

    1. 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.

    1. 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

    1. 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

    1. Smobiler Form Design Interface Display effect

Second, the mobile phone effect display

VS2017 Mobile Development (C #, VB. NET) How--numeric controls are used

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.