Is paintevent not supported in CP?

O

ORC

I have created a form with a button (using C#) and have added:

this.button1.Paint += new
System.Windows.Forms.PaintEventHandler(this.button1_Paint);

and the eventhandler:

private void button1_Paint(object sender,
System.Windows.Forms.PaintEventArgs e)
{
MessageBox.Show("Paint event occured");
}

The Paint event is never called on the Pocket PC but everything works fine
on the desktop PC (normal framework). So isn't the paint event supported in
compact framework at all or is there something I have missed in my code?

Thanks!
Ole
 
A

Alex Feinman [MVP]

Paint even is fired only on some controls: Control, Form, Panel. It is not
filred on intrinsic controls - those that represent standard Windows control
classes (Edit, Combobox, Listbox, Listview etc)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top