Click here to Skip to main content
15,913,587 members
Home / Discussions / C#
   

C#

 
QuestionHow to make MouseHover and Tab selected on a tab control with images only Pin
sushantkaura4-Dec-09 8:27
sushantkaura4-Dec-09 8:27 
QuestionWinForms - DataGridView AutoResizeColumns not working. Pin
Sir Dot Net4-Dec-09 6:20
Sir Dot Net4-Dec-09 6:20 
QuestionHow to combine two datatables into single datatable Pin
K V Sekhar4-Dec-09 6:10
K V Sekhar4-Dec-09 6:10 
AnswerRe: How to combine two datatables into single datatable Pin
PIEBALDconsult4-Dec-09 6:54
mvePIEBALDconsult4-Dec-09 6:54 
AnswerRe: How to combine two datatables into single datatable Pin
Shameel4-Dec-09 7:01
professionalShameel4-Dec-09 7:01 
GeneralRe: How to combine two datatables into single datatable Pin
K V Sekhar6-Dec-09 4:22
K V Sekhar6-Dec-09 4:22 
GeneralRe: How to combine two datatables into single datatable Pin
Shameel7-Dec-09 7:00
professionalShameel7-Dec-09 7:00 
QuestionSignature panel with Mobile 2003.... Pin
Jacob Dixon4-Dec-09 5:00
Jacob Dixon4-Dec-09 5:00 
I cannot seem to get this working correctly. I did get it to work once but after I compiled it again it stopped. I am using the code from Scratchpad/Signature Capture as BMP on Pocket PC[^].

The strange thing is when I save it, it saves just a white background with no writing. It will let you draw on the screen but it doesn't save what you are drawing. I have posted to that article with no reply as of it but I just cannot seem to figure out why it would be doing this?

It is kind of difficult for me since it isn't using the System.Drawing framework from the latest version.
I have coded it exactly like he has it:

private string AppPath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetName().CodeBase);
private Signature cSignature;

public Sig()
{
    InitializeComponent();

    cSignature = new Signature();
    cSignature.Location = pnlSig.Location;
    cSignature.Size = pnlSig.Size;
    this.Controls.Add(cSignature);
}

private void Sig_Load(object sender, EventArgs e)
{
    cSignature.SetPenColor(Color.Black);

    if (File.Exists(Path.Combine(AppPath, "CapturedSignature1.bmp")))
    {
        DialogResult result = MessageBox.Show("There is a signature that exist.\nWould you like to open it?", "Open?", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1);
        if (result == DialogResult.Yes)
        {
            cSignature.LoadImage(Path.Combine(AppPath, "CapturedSignature1.bmp"));
        }
    }
}

private void menuItem1_Click(object sender, EventArgs e)
{
    Cursor.Current = Cursors.WaitCursor;

    //Save to a File
    cSignature.Save(Path.Combine(AppPath, "CapturedSignature1.bmp"));

    Cursor.Current = Cursors.Default;
}


Does anyone else have possibly another idea or another class I could use?
AnswerRe: Signature panel with Mobile 2003.... Pin
Jacob Dixon4-Dec-09 8:10
Jacob Dixon4-Dec-09 8:10 
QuestionHow to read the mail from OutLook Express using UIAutomation in C# 3.0 Pin
bruze4-Dec-09 4:20
bruze4-Dec-09 4:20 
QuestionHow to mock up a paging event? Pin
halifaxdal4-Dec-09 4:14
halifaxdal4-Dec-09 4:14 
AnswerRe: How to mock up a paging event? Pin
freakyit4-Dec-09 4:19
freakyit4-Dec-09 4:19 
GeneralRe: How to mock up a paging event? Pin
halifaxdal4-Dec-09 4:26
halifaxdal4-Dec-09 4:26 
QuestionSet cursor in textbox Pin
Wheels0124-Dec-09 3:42
Wheels0124-Dec-09 3:42 
AnswerRe: Set cursor in textbox Pin
freakyit4-Dec-09 4:00
freakyit4-Dec-09 4:00 
GeneralRe: Set cursor in textbox Pin
Wheels0124-Dec-09 4:16
Wheels0124-Dec-09 4:16 
QuestionControls on form shrinks Pin
Ganesh_T4-Dec-09 3:24
Ganesh_T4-Dec-09 3:24 
AnswerRe: Controls on form shrinks Pin
EliottA4-Dec-09 3:53
EliottA4-Dec-09 3:53 
GeneralRe: Controls on form shrinks Pin
Ganesh_T6-Dec-09 18:27
Ganesh_T6-Dec-09 18:27 
AnswerRe: Controls on form shrinks Pin
freakyit4-Dec-09 4:02
freakyit4-Dec-09 4:02 
GeneralRe: Controls on form shrinks Pin
Ganesh_T6-Dec-09 18:26
Ganesh_T6-Dec-09 18:26 
QuestionEvent handling Datagrid Xaml Pin
arun_pk4-Dec-09 2:55
arun_pk4-Dec-09 2:55 
AnswerRe: Event handling Datagrid Xaml Pin
Abhinav S4-Dec-09 3:20
Abhinav S4-Dec-09 3:20 
QuestionAsynchronous Question Pin
Programm3r4-Dec-09 2:24
Programm3r4-Dec-09 2:24 
AnswerRe: Asynchronous Question Pin
Rob Philpott4-Dec-09 3:02
Rob Philpott4-Dec-09 3:02 

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.