Use VS2017 for Mobile development (C #, VB. NET)--offlinecamerabutton control properties, how to use

Source: Internet
Author: User

Offlinecamerabutton controls

One, style one

We want to achieve the effect in the following actions:

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

    1. Modifying the properties of a Offlinecamerabutton
      1. BackColor Property

Sets the background color of the control, which is set to "white" by default, 1;

Figure 1

    1. Backcoloralpha Property

Sets the control background color transparency, which is set to "255" by default, which is opaque, 2;

Figure 2

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, 3;

Figure 3

    1. BorderColor Property

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

Figure 4

    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, 5;

Figure 5

    1. Bordersize Property

Sets the border size of the control, which is set by default to "0.1", 6;

Figure 6

    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, 7;

Figure 7

    1. Foresize Property

Sets the control font size, which is set to "4" by default, and the control has a font size of 4, 8;

Figure 8

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, 9;

Figure 9

    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, 10;

Figure 10

    1. HorizontalAlignment Property

Sets the horizontal orientation of the control text, which is set to "Center" by default, 11;

Figure 11

    1. Hoverbackcolor Property

Sets the background color when the button is selected, the default setting is "Gray", 12;

Figure 12

    1. Hoverforecolor Property

Sets the font color when the button is selected, the default setting is "Black", 13;

Figure 13

    1. Location Property

Make the control appear in the appropriate position (100, 7), 14;

Figure 14

    1. Modifiers property

Sets the visibility level of the control, the default setting is Private, and the other forms do not access the control, 15;

Figure 15

If you set the modifiers property to public, the control is accessible to other forms.

    1. Name property

Set the control name as "OfflineCameraButton1", 16;

Figure 16

    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, 17;

Figure 17

If you set this property to "2,2,2,2", the spacing between the control and the border becomes larger.

    1. ResourceID Property

Set the button icon name, set the property to "Ca", 18;

Figure 18

    1. Size Property

Make the control size (15, 12), 19;

Figure 19

    1. SizeMode Property

Set how to display the picture, the default setting is "Zoom", that is, the fastest display picture, 20;

Figure 20

If the SizeMode property is set to "StretchImage", the picture can be scaled proportionally to the size of the picture frame.

    1. Timeout property

Set the timeout (in milliseconds) for the client to get the bar code, which is set to "60000", 21 by default;

Figure 21

    1. Underline property

Set text underline, default = "False", 22;

Figure 22

    1. VerticalAlignment Property

Sets the horizontal orientation of the control text, which is set to "Center" by default, 23;

Figure 23

    1. Visible Property

Sets whether the control is displayed, sets the Visible property to "True", 24;

Figure 24

If the Visible property is set to False, the control cannot be displayed.

    1. offlineimagecaptured Events

VB :

Private Sub offlinecamerabutton1_offlineimagecaptured (sender as Object, e as Apiresourcedata) Handles Offlinecamerabutton1.offlineimagecaptured

Me.MessageBox.Show ("Hint: Offline")

End Sub

    1. Smobiler Form Design Interface Display effect

Second, the mobile phone effect display

Note: You can find your offline images in the settings of the mobile client.

--------------------------------------------Split Line--------------------------------------------

What is Smobiler--smobiler allows you to develop apps in Visual Studio, write apps in C #, VB

Use VS2017 for Mobile development (C #, VB. NET)--offlinecamerabutton control properties, how to use

Related Article

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.