473,406 Members | 2,847 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Children controls and form flicker

I'm programmatically adding controls to a form. The issue I'm seeing is
that I can see the controls lay themselves out on the form during runtime.
I'd rather not see this. I've used the form.SuspendLayout()/ResumeLayout()
in hopes that this would hide the child controls' initialization, but that
doesn't seem to help.

Any help would be greatly appreciated.

Cheers, Jon
Nov 16 '05 #1
2 2738
Do you create them in form_load?

--
Michael Culley
"Jon Pope" <jo******@yahoo.com> wrote in message
news:#0**************@TK2MSFTNGP12.phx.gbl...
I'm programmatically adding controls to a form. The issue I'm seeing is
that I can see the controls lay themselves out on the form during runtime.
I'd rather not see this. I've used the form.SuspendLayout()/ResumeLayout() in hopes that this would hide the child controls' initialization, but that
doesn't seem to help.

Any help would be greatly appreciated.

Cheers, Jon

Nov 16 '05 #2
"Jon Pope" <jo******@yahoo.com> wrote in message
news:#0**************@TK2MSFTNGP12.phx.gbl...
I'm programmatically adding controls to a form. The issue I'm seeing is
that I can see the controls lay themselves out on the form during runtime.
I'd rather not see this. I've used the form.SuspendLayout()/ResumeLayout() in hopes that this would hide the child controls' initialization, but that
doesn't seem to help.


BTW, I wouldn't expect SuspendLayout to do this, AFAIK all it does it stop
the controls being moved around on the form. Maybe the order in which you
execute your statements would fix the problem, add them to the controls
collection last.

--
Michael Culley
Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
by: eric.nave | last post by:
What is the correct way to find all the form elements in a particular div? I'd like to be able to loop through them and disable them. For example: <form> <div id="div1"> <input type=text...
0
by: MC | last post by:
Hi all, I have created my own "arrow" control where the user can drag the head or tail around to reposition it, much like any vector-based line that has an arrow head. It draws over top of...
5
by: Ian Stiles | last post by:
I have tried everything under the sun to get rid of horrible flashing and flickering that occurs on a CSharp form when the form hosts a TreeView or WebBrowser control and then you resize the form....
1
by: Alessandro Fragnani | last post by:
Hi, I would like to know how to avoid flicker while adding controls to a panel. I couldn´t find any kind of "BeginUpdate/EndUpdate" on it. Thanks in advance Alessandro
2
by: conset23 | last post by:
Hello. I'm working with WinForm. It has 30 same user control, each with 4 buttons, 3 labels, 3 textboxes, 2 picture boxes and uses override onPaint to draw gradient rectangle. Main form also has 2...
6
by: Samuel R. Neff | last post by:
How can you detect the version of windows common controls installed at run-time? I want to implement the ListViewXP (flicker-free) but still need to support non-XP computers (which will have...
6
by: chris.dannemiller | last post by:
I need to be able to move a few form abouts around after a event occurs but when I do this it causes massive flickering is there any way to reduce this?
0
by: Charles Law | last post by:
Can anyone suggest how to keep two ListView controls synchronised? It is a common scenario: two ListView controls, side-by-side, containing similar data. I want to scroll one control and have the...
0
by: pianobasher | last post by:
Hello I have a class that's derived from a normal windows Form. I call it BaseContainer. It has a Panel and a built-in method to add another BaseContainer derivative inside that panel. I hoped...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.