. NET Language app development platform--smobiler Learning log: How to implement electronic signature function on mobile phone

Source: Internet
Author: User
Tags modifiers

First words: Smobiler is a development platform that uses. NET language to develop apps in the VS environment, perhaps more convenient than Xamarin. Target style

We want to achieve the effect in the following actions:

1. Drag a signature control and a ImageButton control to the form interface from "Smobiler components" on the toolbar

2. Modify the properties of the ImageButton A.backcolor property

Sets the background color of the control, sets the property to "128, 255, 128", which represents the RGB color, 1;

B.backcoloralpha Property

Sets the background color transparency of the control, setting the property to "0", which is full transparency, 2;

C.location Property

Make the control appear in the appropriate position (22, 86), 3;

D.resourceid Property

Set the button icon name, set the property to "Sc1", 4;

E.size Property

Set the width and height of the control, set the property to (53, 21), 5;

Figure 1 Figure 2 Figure 3 Figure 4
Figure 5
E.imagebutton's Click event
VB: As   ObjectEnd Sub 
C #:   imagebutton1_click (} 

Note: Call the signature signature control

3. Modify the properties of the signature A.backcolor property

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

B.forecolor Property

Sets the color of the control font, the default setting is "Black", that is, the control font color is black, 7;

C.generatemember Property

Sets whether the control generates a member variable and sets the property to "True", the control can be referenced by another method, 8;

D.modifiers Property

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

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

E.name Property

Set the control name as "Signature1", 8;

F.picturequality Property

Set the image quality, set the property to "10", 11;

Figure 6 Figure 7 Figure 8 Figure 9
Figure 10 Figure 11
g.signaturecompleted Events
 VB: private Sub signature1_signaturecompleted ( Sender as objectas binarydata) handles signature1.signaturecompleted if E. Errorinfo.trim (). ToString (). Length <= 0 then e.savefile () imagebutton1.resourceid = e. ResourceID end If end Sub        
C #:   signature1_signaturecompleted (if (E.errorinfo.trim ()). ToString (). Length <= 0)) {e.savefile (); Imagebutton1.resourceid = E.resourceid; } }
4.Smobiler Form Design Interface Display effect

Second, the mobile phone effect display

. NET Language app development platform--smobiler Learning log: How to implement electronic signature function on mobile phone

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.