Is paintevent not supported in CP?

  • Thread starter Thread starter ORC
  • Start date Start date
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
 
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)
 
Back
Top