473,320 Members | 2,088 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.

Form.MinimumSize

Wim
I noticed that my program was reacting slow when moving it over the
screen. So I went looking for what was causing this. It seems
Form.MinimumSize is the culprit. At first I had
this.MinimumSize = new System.Drawing.Size(408, 296);
in the InitializeComponent() member. The program reacted slow on moving
from the start. Then I put the this.MinimumSise statement in the
Form_Resize member (EventHandler). The program is now fast when moving it
over the screen until it's being resized. Is this a known issue? Am I
doing something wrong? Is there a work around?

--
Wim
Nov 15 '05 #1
2 6071
I've seen this happen - not sure if its a known issue or not. One thing you
can do is override the wndproc of the form and handle the WM_GETMINMAXINFO
message.

"Wim" <wi*@nospam.invalid> wrote in message
news:Xn******************************@213.51.144.3 6...
I noticed that my program was reacting slow when moving it over the
screen. So I went looking for what was causing this. It seems
Form.MinimumSize is the culprit. At first I had
this.MinimumSize = new System.Drawing.Size(408, 296);
in the InitializeComponent() member. The program reacted slow on moving
from the start. Then I put the this.MinimumSise statement in the
Form_Resize member (EventHandler). The program is now fast when moving it
over the screen until it's being resized. Is this a known issue? Am I
doing something wrong? Is there a work around?

--
Wim

Nov 15 '05 #2
Wim
Andrew wrote:
I've seen this happen - not sure if its a known issue or not. One
thing you can do is override the wndproc of the form and handle the
WM_GETMINMAXINFO message.


Thank you. But I hope to get my app working in Linux, so I don't want to
use the Win32 API.

--
Wim
Nov 15 '05 #3

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

Similar topics

3
by: Harry_Crow | last post by:
I want to restrict the minimum size of the form. I find that there are properties MaximumSize and MinimumSize. This will help you control the maximum and minimum size the form, when the form is...
1
by: John Tighe | last post by:
Changing the max or min size of a form can be in code, but if I do that then it causes build errors in my application. The build error is: Expression is a value and therefore cannot be the target...
1
by: sandman | last post by:
I set the MinimumSize property on my form but it doesn't seem to work. I can still resize the form to any size I want. What I'm trying to do is prevent the buttons from vanishing when the form is...
3
by: tolisss | last post by:
Hi I have a form with minimize,maximize button=false and startup window state= maximized but when the user double click on the form title bar caption the form's size changes How do i prevent...
6
by: John Bowman | last post by:
Hi All, I must be missing something really obvious, so I'd appreciate someone helping me out. I have a simple Windows form that currently only has a title bar (aka the Text Property is set) and...
6
by: Rob | last post by:
I need to create a form that will resize only the verticle size of the Form and not the width. So far I'm partial to the following code. Can someone please elaborate the ??? . . . . Const...
7
by: Matthew Speed | last post by:
I have a form that I would like to make very small on load. No matter how small I set it the form gets set to 123x34 when it loads. I am free to resize it smaller using my mouse but the initial...
0
by: Ganesh | last post by:
Hi All I Used InheritedForm(s) With Inherits the Form In Dll. And I also set the MinimumSize Property to the Base Form And then I design My form Which Inherites the Base from. actually...
4
by: Rob | last post by:
I want to resize the height of a form without resizing the width, therefore I tried: Private Sub Form1_Resize(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Resize ...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
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...
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...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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...

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.