473,699 Members | 2,367 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Suspending screen updates

Hi

I have a winform with a panel on it. I am doing visual changes to the panel.
Is there a way to suspend screen painting during these changes? If the whole
form needs its display suspended then that would work for me too. How can I
do this?

Thanks

Regards
Jun 27 '08 #1
4 1843
"John" <in**@nospam.in fovis.co.ukschr ieb
I have a winform with a panel on it. I am doing visual changes to
the panel. Is there a way to suspend screen painting during these
changes? If the whole form needs its display suspended then that
would work for me too. How can I do this?
You'll get the best solution if you tell us why you want to do this. Do
you do a lot of visual changes and do you want to speed it up? How long
does it currently take? What kind of changes?
Armin

Jun 27 '08 #2
Hi Armin

I am adding several controls to the panel and would like to display them all
at once when the update is complete.

Many thanks for your time.

Regards

"Armin Zingler" <az*******@free net.dewrote in message
news:ed******** *****@TK2MSFTNG P05.phx.gbl...
"John" <in**@nospam.in fovis.co.ukschr ieb
>I have a winform with a panel on it. I am doing visual changes to
the panel. Is there a way to suspend screen painting during these
changes? If the whole form needs its display suspended then that
would work for me too. How can I do this?

You'll get the best solution if you tell us why you want to do this. Do
you do a lot of visual changes and do you want to speed it up? How long
does it currently take? What kind of changes?
Armin

Jun 27 '08 #3
"John" <in**@nospam.in fovis.co.ukschr ieb
Hi Armin

I am adding several controls to the panel and would like to display
them all at once when the update is complete.
Can you hide the whole panel before and show it afterwards? Maybe show
an additional "please wait..." label (or similar) during the operation.
How long does it currently take?
? (just to receive an impression)
AZ
Jun 27 '08 #4
John,

Those controls where this makes sense have properties for this.

Have a look at the listview by instance.

http://msdn.microsoft.com/en-us/libr...ginupdate.aspx

Cor
"John" <in**@nospam.in fovis.co.ukschr eef in bericht
news:eG******** *****@TK2MSFTNG P04.phx.gbl...
Hi

I have a winform with a panel on it. I am doing visual changes to the
panel. Is there a way to suspend screen painting during these changes? If
the whole form needs its display suspended then that would work for me
too. How can I do this?

Thanks

Regards

Jun 27 '08 #5

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

Similar topics

1
1582
by: robert | last post by:
hi! there's a line in my Javascript program that makes a change in the appearance of an area of the screen. it is a game program, so there are a cascade of changes after the user makes a move. these are carefully sequenced and timed in a loop which contains the "action" statement document.images.src = offGIF; unfortunately, the *actual* screen updating appears to be 1)
11
4896
by: Jeffrey Hiess | last post by:
Something like getchar() doesn't work, since it "waits" for input. #include <stdio.h> while (1) { if (getchar()) /* break if any key is pressed */ { break; }
8
1629
by: Kris Dugan | last post by:
I am using a Unix/Solaris 8/9 environment. I want to make a tool that will constantly read a structure of information and display that information (or "paint it") to the screen. Rather than having the information scroll by, I want a way in which the screen would be "repainted". Sample Screen: ------------------------------------------------- | foo: 6 bar: 12 | | this: 18 that: 20 |
0
1299
by: Owen Woo | last post by:
By Microsoft.Win32.PowerModeChangedEventHandler my application can only receive suspending event. But how can I prevent from suspending?
2
1288
by: =?Utf-8?B?S0ItMQ==?= | last post by:
I'm the only user of this computer. It is my home computer. I updated Windows today and it turned on my Login screen that I had a friend disable for me. I have tried a system restore and I have tried removing the updates but to no avail. Is there a way to perninantly disable this login screen? Can I delete it totally from Windows XP? Is it possible that I can finally send the dreaded login screen towards the light? Is this thing like...
5
7663
by: | last post by:
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...
12
2314
by: Dave | last post by:
Hi all, I have an application which has some worker threads which often have to stop and wait for some further information from other threads. These pauses will often take a long time (a couple of minutes) and I want the thread to be able to begin work ASAP once the new information arrives so Thread.Sleep isn't the best solution. In .NET 1.1 I used .Suspend and .Resume to handle these pauses but in .NET 2.0 these methods are no longer...
5
2295
by: Uzi | last post by:
Hi all, I have a thread which is running a long method in a third party component (witch is a com object and accessed via interop). I need to be able to suspend this thread. the thread.Suspend() method is deprecated in .NET 2.0 the AutoResetEvent and similar are not good for me since my thread is running an external method which I cannot modify to add such synch events. Is there any safe way to suspend such a thread?
4
5156
by: Alfredo73 | last post by:
Hi, I am using Visual Basic 2008 to create some databases. It reads data from textfiles and puts them in SQL databases. After the user presses the Process button I would like to give the user to get some feedback of the process simply by for example label1.text += "Processing File 2". But during the process no Screen Updates are made...only after all databases are processed and VB.net is waiting for new user response it updates my...
0
8615
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9174
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9034
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8883
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7750
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5874
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4629
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2347
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2009
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.