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 / March 2007

Tip: Looking for answers? Try searching our database.

Screen goes mental for a bit when resizing the form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Simon Harvey - 15 Mar 2007 11:06 GMT
Hi everyone,

I have a windows form application that looks a little bit like outlook
in that it has a menu system on the left and then the main area to the
right has a horizontal splitter thing going on.

Many of the controls are contained in panels, which are in turn
contained in user controls.

The problem is when the user resizes or maximises the form, the screen
goes mental for a bit.

Is there anyway I can prevent this from happening. I'd just like the
whole thing to be a bit "cleaner"

Many thanks

Simon
Bob Powell [MVP] - 15 Mar 2007 20:28 GMT
#1 What do you mean by "goes mental" Computing is an exact science....

#2 Are you doing your own layout or custom drawing?

Signature

Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

> Hi everyone,
>
[quoted text clipped - 14 lines]
>
> Simon
Simon Harvey - 16 Mar 2007 10:37 GMT
Hi

I'm not doing any custom drawing - just using user controls with docked
panels.

In terms of it's mentalness, it flickers a lot and it seems that you can
 almost see the internal panels trying to resize themselves to take up
more space. It's particularly prominent on larger moniters.

Is there any way to reduce this?

Many thanks

Simon
lynn.j.gasch at geemail - 16 Mar 2007 19:12 GMT
You should be able to disable the update while the form is being
rezised. You might try using Suspend/ResumeLayout or Begin/EndUpdat. I
made a quick look in the docs for how to detect the sizing but I
didn't see an OnSizeChanging (etc) to override. There may be an event
on the form or on Panel that you can handle for this, otherwise you
might have to do it in mouse down/up handlers.  HTH.
Simon - 18 Mar 2007 18:47 GMT
Thanks Lynn

Simon

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.