473,320 Members | 1,817 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,320 software developers and data experts.

Screen goes mental for a bit when resizing the form

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
Mar 15 '07 #1
4 1308
#1 What do you mean by "goes mental" Computing is an exact science....

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

--
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.

Simon Harvey wrote:
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
Mar 15 '07 #2
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
Mar 16 '07 #3
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.

Mar 16 '07 #4
Thanks Lynn

Simon
Mar 18 '07 #5

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

Similar topics

64
by: Dave | last post by:
A friend of mine pointed out the other day that certain elements on my web site are too small. But in most of what I publish, fonts are at default size or smaller, and my images are easy to see. I...
4
by: pjac | last post by:
I need some help with some VB language that will change the screen resolution on a monitor when a MS-Access 2000 database is opened from 1024 x 768 to 800 x 600. Any help with this effort would be...
1
by: Terry | last post by:
I've seen several posts from people who have seen this flashing in TreeView's when resizing a form. I've noticed it in my app, but only in the child windows. For example, my main form has a...
16
by: Naveen Mukkelli | last post by:
Hi, How can we run the app on full-screen. I mean all the controls such as, text boxes, data grids on the form would also be resized or re-located automatically when we press maximize button...
2
by: Dennis | last post by:
I have a form on which I have two controls, one docked to the left and the other docked to the right in a window that is Maximized. I developed the application on one computer which has a screen...
1
by: MikeY | last post by:
Hi Everyone, I'm looking for suggestions for touch screen form sizes. Or better yet dealing with forms very various screen sizes. How to deal with anchoring buttons etc and so they don't overlap...
14
by: Seige | last post by:
Ever had headache when you can't resize the background width using CSS: body{ background: url(/images/bg.jpg) ; background-width: 800px; } It won't work, would it? Of course not, it's not even...
10
by: =?Utf-8?B?UmljaA==?= | last post by:
A lot of users at my workplace use different screen resolutions, and I build apps to use 1680 x 1050 pixels res by default. But some users are using 800 x 600, and the apps are too large for their...
7
by: raylopez99 | last post by:
I have a logical drawing space much bigger than the viewport (the screen) and I'd like to center the viewport (the screen) to be at the center of the logical drawing space. After following the...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.