PC Review


Reply
Thread Tools Rate Thread

Opennetcf signature control

 
 
=?Utf-8?B?SkI=?=
Guest
Posts: n/a
 
      5th Oct 2005
Hi,

I am using VB.NET 2003 with the Opennetcf signature control. Code is listed
below:

Dim signatureBytes As Byte() = Signature1.GetSignatureEx
Signature1.Clear()
Signature1.LoadSignatureEx(signatureBytes)

Dim fs As New System.IO.FileStream("signature1.bmp", IO.FileMode.Create)
Dim writer As New System.IO.BinaryWriter(fs)
writer.Write(signatureBytes)
writer.Close()
fs.Close()

The information does pass into the variable signatureBytes because when I
clear the controls, it appears again perfectly. However it does not save to
the file. It does create the file but not save it. Any ideas anyone?
 
Reply With Quote
 
 
 
 
Ginny Caughey [MVP]
Guest
Posts: n/a
 
      5th Oct 2005
JB,

Here's a C# example that shows you how to save a signature to a file:
http://groups.google.com/group/micro...2606fe0fb47766

--
Ginny Caughey
..NET Compact Framework MVP


"JB" <(E-Mail Removed)> wrote in message
news:77B4C06E-2A49-4987-9ACB-(E-Mail Removed)...
> Hi,
>
> I am using VB.NET 2003 with the Opennetcf signature control. Code is
> listed
> below:
>
> Dim signatureBytes As Byte() = Signature1.GetSignatureEx
> Signature1.Clear()
> Signature1.LoadSignatureEx(signatureBytes)
>
> Dim fs As New System.IO.FileStream("signature1.bmp", IO.FileMode.Create)
> Dim writer As New System.IO.BinaryWriter(fs)
> writer.Write(signatureBytes)
> writer.Close()
> fs.Close()
>
> The information does pass into the variable signatureBytes because when I
> clear the controls, it appears again perfectly. However it does not save
> to
> the file. It does create the file but not save it. Any ideas anyone?



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenNETCF 2.0 signature control has disappeard? Ubigg Microsoft Dot NET Compact Framework 1 8th Jan 2007 05:38 PM
OpenNETCF's monthcalendar control Lonifasiko Microsoft Dot NET Compact Framework 3 8th Sep 2005 10:29 AM
Reconsituting an OpenNetCF Signature on the Desktop Darren Shaffer Microsoft Dot NET Compact Framework 4 16th Mar 2005 09:00 PM
OpennetCF.ORG - Signature. A_PK Microsoft Dot NET Compact Framework 1 14th Mar 2005 11:57 AM
Could OpenNetCF InkX control be change to inherit from TextBoxBaseinstead of control? Russ Ryba Microsoft Dot NET Compact Framework 3 2nd Dec 2004 08:03 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:48 PM.