S
sasifiqbal
Hi,
One of my developers are facing an interesting problem regarding
UserControl invalidation.
The problem is:
We have two forms in our application. Form A does nothing except
loading of Form B and Form B contains an array of UserButton kind of
contol (we have created our own buttons deriving from UserButton). All
the drawings activities in Form B are okay and nothing gets wrong if we
drag Form A over Form B. However if we move and Drag any external
application like Notepad over Form B we gets a very disturbing
flickering affect making all the userbutton controls to have a white
background for a sudden.
This sounds interesting as the dragging of same application's other
forms do not create the said flickering affect.
Please note that following code is inplace the control
this.SetStyle( ControlStyles.UserPaint |
ControlStyles.AllPaintingInWmPaint |
ControlStyles.SupportsTransparentBackColor |
ControlStyles.DoubleBuffer | ControlStyles.Opaque, true
);
Can any one highlight what is going wrong here?
Regards,
Asif
One of my developers are facing an interesting problem regarding
UserControl invalidation.
The problem is:
We have two forms in our application. Form A does nothing except
loading of Form B and Form B contains an array of UserButton kind of
contol (we have created our own buttons deriving from UserButton). All
the drawings activities in Form B are okay and nothing gets wrong if we
drag Form A over Form B. However if we move and Drag any external
application like Notepad over Form B we gets a very disturbing
flickering affect making all the userbutton controls to have a white
background for a sudden.
This sounds interesting as the dragging of same application's other
forms do not create the said flickering affect.
Please note that following code is inplace the control
this.SetStyle( ControlStyles.UserPaint |
ControlStyles.AllPaintingInWmPaint |
ControlStyles.SupportsTransparentBackColor |
ControlStyles.DoubleBuffer | ControlStyles.Opaque, true
);
Can any one highlight what is going wrong here?
Regards,
Asif