473,671 Members | 2,251 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Stop a form from displaying until all labels and graphics loaded

I have a form containing many controls which receive their properties at
design time. Trouble is the form displays large transparent squares all
over it while pictures and labels are being filled. It also flashes several
times which is quite annoying to watch.
Is there a way to keep the form hidden until everything is ready for
display?
Jan 11 '07 #1
3 2028
Make you instantiate the form and then show the form as 2 distinct steps,
i.e:

Dim _f As New MyForm

_f.Show()

This means that all the properties will be set in the first step and the 2md
step only needs to show the form.

Eeven so there may still be some noticable overhead as the form is actually
rendered (drwan on the monitor) depending on how much system resource is
available at the time.
"will_456" <wi;ll****@bigp ond.comwrote in message
news:1H******** ****@news-server.bigpond. net.au...
>I have a form containing many controls which receive their properties at
design time. Trouble is the form displays large transparent squares all
over it while pictures and labels are being filled. It also flashes several
times which is quite annoying to watch.
Is there a way to keep the form hidden until everything is ready for
display?

Jan 11 '07 #2
What exactly does your form do?

If it just has labels and picture boxes, you could just create a bitmap
on the fly that looks like the form, and then use GDI+ to paint the
bitmap onto the form. This is a pretty drastic option depending on what
the form does however, so hopefully Stephany's solution solves your
problem.

Thanks,

Seth Rowe
will_456 wrote:
I have a form containing many controls which receive their properties at
design time. Trouble is the form displays large transparent squares all
over it while pictures and labels are being filled. It also flashes several
times which is quite annoying to watch.
Is there a way to keep the form hidden until everything is ready for
display?
Jan 11 '07 #3
Thanks I have followed this method but it still seems to draw on the screen
in stages eg. Background with white squares all over it where controls
should be then buttons, labels etc. appear. As you say it's probably my slow
display.
thanks again
"Stephany Young" <noone@localhos twrote in message
news:Ob******** ******@TK2MSFTN GP03.phx.gbl...
Make you instantiate the form and then show the form as 2 distinct steps,
i.e:

Dim _f As New MyForm

_f.Show()

This means that all the properties will be set in the first step and the
2md step only needs to show the form.

Eeven so there may still be some noticable overhead as the form is
actually rendered (drwan on the monitor) depending on how much system
resource is available at the time.
"will_456" <wi;ll****@bigp ond.comwrote in message
news:1H******** ****@news-server.bigpond. net.au...
>>I have a form containing many controls which receive their properties at
design time. Trouble is the form displays large transparent squares all
over it while pictures and labels are being filled. It also flashes
several times which is quite annoying to watch.
Is there a way to keep the form hidden until everything is ready for
display?


Jan 13 '07 #4

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

Similar topics

2
3453
by: qumpus | last post by:
My program right now generates USPS style shipping label using System.Drawing.Graphics. It works fine except that the printer prints really slowly. I want to make my program take advantage of true type fonts. So I assume it's possible to send Font Type and the text to the printer, and the printer should digest and print faster. Still, barcode info needs to be sent as an image. When I print fifty copies of the same label it prints really...
3
3478
by: Dalan | last post by:
At first I was not certain what could cause Access 97 from displaying most jpeg images, but not all. After further testing, it seemed that all original images of less than 275 pixels per inch or less would display, but those close to 300 pixels/inch or greater would not (MS Access cannot recognize the file format xxx.jpg). The larger, original images were scanned and saved as .bmp (at 300 dpi producing a 15MB file). Then the images were...
2
2585
by: rcmail14872 | last post by:
I have a form that lists several different categories for labels. I made a form that will let the user add a new category. On the Form the user can type in the name for the new category, then I thought I would search the code below and replace "ReservedForNewCategory01" (or the next available category, possibly "ReservedForNewCategory02"), with the name of the new category that the user typed into the Form. How can I search and replace...
2
7582
by: Dean Slindee | last post by:
It appears that I have two routines that don't play well together! First routine: a form's background is shaded with a gradient color. Second routine: then, the background of all labels on the form are made transparent. What results is the label's backcolor appearing as blocks of 'control' colored background. Setting the label's backcolor to color.transparent does not make it transparent (evidently the text is repainted with a...
4
1483
by: Simon Tamman {Uchiha Jax} | last post by:
Scenario: Two System.Windows.Forms: Form1 and Form2. Form1 is displayed, Form2 is hidden. At this juncture, is it possible to take the graphics from Form2 and output that to Form1's display and take all of the mouse and key events from Form1 and pass those on to Form2, thus changing the graphical output on Form2 and then pasting those graphical changes back to Form1? Is this some kind of P/Invoke job?
79
3754
by: VK | last post by:
I wandering about the common proctice of some UA's producers to spoof the UA string to pretend to be another browser (most often IE). Shouldn't it be considered as a trademark violation of the relevant name owner? If I make a whisky and call it "Jack Daniels", I most probably will have some serious legal problems. "Mozilla" partially appeared because NCSA stopped them from using "Mosaic" in the UA string. Is it some different...
1
4624
by: jcmag | last post by:
I would like to take a "screen capture" of just a Form. I've done the following: internal void CaptureScreen() { Graphics g1 = CreateGraphics(); Image MyImage = new Bitmap(ClientRectangle.Width, ClientRectangle.Height, g1); Graphics g2 = Graphics.FromImage(MyImage); IntPtr dc1 = g1.GetHdc();
2
4026
by: KC-Mass | last post by:
I have a form that is used to ID and then load Excel files into Access. I use labels on the form to record which file was last loaded. That was accomplished with a simple lblFileLoaded = strFullFileName. The label would show the file name and when the form was closed and then opened it would still show the name of the last file loaded. That preserves an important piece of information. Suddenly the form has stopped doing that. When you...
0
8393
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
8917
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
8821
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...
1
8598
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
4225
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4407
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2812
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2051
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1809
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.