Offlinecamerabutton controls
One, style one
We want to achieve the effect in the following actions:
- Drag a Offlinecamerabutton control to the form interface from "Smobiler components" on the toolbar
- Modifying the properties of a Offlinecamerabutton
- BackColor Property
Sets the background color of the control, which is set to "white" by default, 1;
Figure 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.
- Border Property
Sets the control border, which is set to "0,0,0,0" by default, 3;
Figure 3
- BorderColor Property
Sets the control border color, which is set to "Black" by default, 4;
Figure 4
- 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
- Bordersize Property
Sets the border size of the control, which is set by default to "0.1", 6;
Figure 6
- 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
- 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.
- 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
- 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, 10;
Figure 10
- HorizontalAlignment Property
Sets the horizontal orientation of the control text, which is set to "Center" by default, 11;
Figure 11
- Hoverbackcolor Property
Sets the background color when the button is selected, the default setting is "Gray", 12;
Figure 12
- Hoverforecolor Property
Sets the font color when the button is selected, the default setting is "Black", 13;
Figure 13
- Location Property
Make the control appear in the appropriate position (100, 7), 14;
Figure 14
- 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.
- Name property
Set the control name as "OfflineCameraButton1", 16;
Figure 16
- 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.
- ResourceID Property
Set the button icon name, set the property to "Ca", 18;
Figure 18
- Size Property
Make the control size (15, 12), 19;
Figure 19
- 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.
- 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
- Underline property
Set text underline, default = "False", 22;
Figure 22
- VerticalAlignment Property
Sets the horizontal orientation of the control text, which is set to "Center" by default, 23;
Figure 23
- 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.
- offlineimagecaptured Events
VB :
Private Sub offlinecamerabutton1_offlineimagecaptured (sender as Object, e as Apiresourcedata) Handles Offlinecamerabutton1.offlineimagecaptured
Me.MessageBox.Show ("Hint: Offline")
End Sub
- 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