Click here to Skip to main content
12,244,322 members (49,511 online)
Click here to Skip to main content
Add your own
alternative version

Stats

23.1K views
875 downloads
30 bookmarked
Posted

PDA / Pocket PC Signature Capturing and Saving as BMP

, 1 Feb 2008 CPOL
Rate this:
Please Sign up or sign in to vote.
A way to capture signature on Pocket PC and saving as BMP file

Introduction

This control class allows a user to take a signature, and save it as BMP file in the Pocket PC.

Background

I was looking for a free Signature control written in VB.net but did not find any help regarding that, but I found an article on codeproject.com regarding capturing the signatures but it was written in C# (you can find the article here). So I decided to use the idea and write the code again in VB.net in a pretty simple way so that it will be more easy and useable for everyone.

Using the code

add reference

Imports cetestapp.SignaturePDA

declare these two as global variables

//
Private cSignature As New Sigature
Private AppPath As String = Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetName().CodeBase)
//

Add following code to your form load event

cSignature.Location = pnlSignature.Location
cSignature.Size = pnlSignature.Size
Me.Controls.Add(cSignature)
cSignature.Clear(True)
Cursor.Current = Cursors.Default
cSignature.SetPenColor(Color.Blue)
cSignature.Focus()

On save button click event add the following code snippt

'Save to a File

Cursor.Current = Cursors.WaitCursor
cSignature.Save(Path.Combine(AppPath, "CapturedSignature1.bmp"))
Cursor.Current = Cursors.Default

On clear button click event add this

cSignature.Clear(True)

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Agha Zair Ali
Pakistan Pakistan
No Biography provided

You may also be interested in...

Comments and Discussions

 
GeneralThanks Pin
spekkie22-Sep-08 13:48
memberspekkie22-Sep-08 13:48 
GeneralHi Pin
Ravenet1-Feb-08 5:43
memberRavenet1-Feb-08 5:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160426.1 | Last Updated 1 Feb 2008
Article Copyright 2008 by Agha Zair Ali
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid