SuspendLayout Not Suspending...

G

Guest

I have a user control (tag) made up up 9 smaller user controls (minitag).

I have a panel on a form that is being populated with 81 of the tag controls in a grid configuration.

Even though I am using Suspend Layout, I still see the controls getting drawn as they are added to the panel.

I've tried suspending the layout of the form, of the panel and even on the user controls.

How can I get this thing populated wihtout seeing it being drawn so slowly on the screen?

Thanks.

J
 
A

Alberto Poblacion

Even though I am using Suspend Layout, I still see the
controls getting drawn as they are added to the panel.
I've tried suspending the layout of the form, of the panel
and even on the user controls.
How can I get this thing populated wihtout seeing it being
drawn so slowly on the screen?

If you are using version 2 of the Framework, you can set to true the
property DoubleBuffered of the Form or Panel.
 
G

Guest

DoubleBuffered reduces the flickering, but it has not effect on the controls
being drawn slowly.
 
L

Linda Liu [MSFT]

Hi,

I am sorry that I could not understand your scenario exactly.

What's the kind of your application, a WinForms or Web application?
I have a user control (tag) made up up 9 smaller user controls (minitag).
I have a panel on a form that is being populated with 81 of the tag
controls in a grid configuration.

What's the "tag controls" in the above sentence?

If possible, could you please send me a sample project that could just
demonstrate your problem? To get my actual email address, remove 'online'
from my displayed email address.

Only if I understand your problem exactly, I may provide possible
assistance to you.

Thank you for your understanding and cooperation!

Sincerely,
Linda Liu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
G

Guest

Linda,

It's a WinForm application. And the "Tag" control is a user control within
my project.

Picture a 9 x9 grid of squares (I called them tags). Each square has a
small 3x3 grid of mini tags within it.

I'm using 3 types of user controls to create each "tag". A "minitag", a
"minitagpanel" which is made up of 9 minitags. And a "tag" which contains a
minitagpanel. Then I add 81 "tags" to the controls collection of the panel
on the form. There's also some custom graphics getting drawn on the panel
behind the user controls.

I guess I just need to know the best way to handle the drawing, etc.
because it's all really slow.

I can send you the project if this is not enough info.

J
 
L

Linda Liu [MSFT]

Hi J,

Thank you for your prompt response.

I understand your problem now. However, I'd like your sample project to see
how slow the usercontrols are drawn on the form. Could you please send it
to me?

Remove 'online' from my displayed email address to get my actual email
address.

Thanks!

Sincerely,
Linda Liu
Microsoft Online Community Support
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top