Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / February 2006

Tip: Looking for answers? Try searching our database.

Making my winform appear smoothly

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
hello_world - 28 Feb 2006 04:48 GMT
I have a winform containing a TabControl with multiple TabPages. Each
TabPage in turn contains several controls (Labels, TextBoxes ...).

Now, when I load my form or switch TabPages, the controls within the
form do not appear in a smooth manner, i.e, I see the outlines of the
controls first for a fraction of a second and then the form is drawn
completely. Is there a way to correct this - to make my form and its
controls appear simultaneously?

Thanks.
Cerebrus - 28 Feb 2006 10:23 GMT
I usually see such behaviour when I run the program in Debug mode(F5),
but when I choose Start without Debugging (Ctrl+F5), it doesn't happen
anymore. So, after you're finished with your debugging, you might
enable optimizations and run without debugging. See if there's any
improvement in performance.

Regards,

Cerebrus.
Stoitcho Goutsev (100) - 28 Feb 2006 14:29 GMT
Hi,

It could be due to heavy intialization.
I'd suggest reading the following article regarding improving applications
start-up time:
http://msdn.microsoft.com/msdnmag/issues/06/03/WindowsFormsPerformance/

Keep in mind that windows draw borders in response to WM_NCPAINT, which is
high priority message where WM_PAINT for drawing the content of the windows
is very low priority and is not going to be processed if the message queue
or application is busy.

Signature

HTH
Stoitcho Goutsev (100)

>I have a winform containing a TabControl with multiple TabPages. Each
> TabPage in turn contains several controls (Labels, TextBoxes ...).
[quoted text clipped - 6 lines]
>
> Thanks.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.