By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,017 Members | 1,077 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,017 IT Pros & Developers. It's quick & easy.

double buffering in child controls

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
"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

P: n/a
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

P: n/a
"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.