467,151 Members | 1,120 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,151 developers. It's quick & easy.

double buffering in child controls

hi
i have an app in which i can drop objects onto a form and move them, it
consists of graphics (lines), i am using double buffering to avoid
filckering in the parent control which is a panel,but when i add
controls to this panel dyanamically, the double buffering effect is not
there, i move all lines connceted to a control when the control is
moved , at this time flickering occurs,also when i enable double
buffering for a child control an exception is thrown when i drop
control onto the panel
sayiong "Parameter is not valid." , at this line of code
Application.Run(new MainForm());
please help.

Sameer Sood
Microsoft Student partner
NIT Durgapur,india

Oct 21 '06 #1
  • viewed: 5479
Share:
3 Replies
"ssoffline" <ss*******@gmail.comwrote in message
news:11**********************@i42g2000cwa.googlegr oups.com...
hi
i have an app in which i can drop objects onto a form and move them, it
consists of graphics (lines), i am using double buffering to avoid
filckering in the parent control which is a panel,but when i add
controls to this panel dyanamically, the double buffering effect is not
there, i move all lines connceted to a control when the control is
moved , at this time flickering occurs,also when i enable double
buffering for a child control an exception is thrown when i drop
control onto the panel
Double buffering does not carry through to child controls. You need to set
it for each control.
sayiong "Parameter is not valid." , at this line of code
Application.Run(new MainForm());
please help.
This usually happens when an exception is thrown in the paint event, you
need to track down that exception.
Michael
Oct 21 '06 #2
the exception is thrown as i have updated styles from within the user
control in addition to the form, the problem is solved when i remove it
from child controls, but if form has all flags enabled then why the
flickering is there, and is there any way to enable double buffering on
user controls?

Michael C wrote:
"ssoffline" <ss*******@gmail.comwrote in message
news:11**********************@i42g2000cwa.googlegr oups.com...
hi
i have an app in which i can drop objects onto a form and move them, it
consists of graphics (lines), i am using double buffering to avoid
filckering in the parent control which is a panel,but when i add
controls to this panel dyanamically, the double buffering effect is not
there, i move all lines connceted to a control when the control is
moved , at this time flickering occurs,also when i enable double
buffering for a child control an exception is thrown when i drop
control onto the panel

Double buffering does not carry through to child controls. You need to set
it for each control.
sayiong "Parameter is not valid." , at this line of code
Application.Run(new MainForm());
please help.

This usually happens when an exception is thrown in the paint event, you
need to track down that exception.
Michael
Oct 22 '06 #3
"ssoffline" <ss*******@gmail.comwrote in message
news:11*********************@i3g2000cwc.googlegrou ps.com...
the exception is thrown as i have updated styles from within the user
control in addition to the form, the problem is solved when i remove it
from child controls, but if form has all flags enabled then why the
flickering is there,
As I said, double buffering doesn't apply to child controls, you need to
enable it individually. I'm not sure why you're getting an error though.

Michael
Oct 23 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Alex Glass | last post: by
6 posts views Thread by Dave Veeneman | last post: by
2 posts views Thread by Jason | last post: by
2 posts views Thread by Dan Neely | last post: by
7 posts views Thread by Rain | last post: by
1 post views Thread by Rain | last post: by
1 post views Thread by TyBreaker | last post: by
1 post views Thread by Rune Jacobsen | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.