Raise control events
-
I am having problem with control events.I am unable to raise overriden paint event.drag& drop event and mouse events.The control is dropped on a designer at runtime i.e control can be moved freely on the designer at runtime. used delegate to raise the event but not working...
-
I am having problem with control events.I am unable to raise overriden paint event.drag& drop event and mouse events.The control is dropped on a designer at runtime i.e control can be moved freely on the designer at runtime. used delegate to raise the event but not working...
-
Hello, Looks like you forgot to call the base.xxx Method of the overriden events. like:
protected override void OnPaint(System.Windows.Forms.PaintEventArgs e)
{
//Your codebase.OnPaint;
}
Hope that helps! All the best, Martin
-
I am having problem with control events.I am unable to raise overriden paint event.drag& drop event and mouse events.The control is dropped on a designer at runtime i.e control can be moved freely on the designer at runtime. used delegate to raise the event but not working...
-
snoby wrote:
The control is dropped on a designer at runtime
Ohh, now I understand. Youre control is in design mode, or not? Don't think that the event's are fired in this mode. Sorry for not realy helping. All the best, Martin