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

restricting the minimum size of the form

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 resized.
but I find using this will make the controls on the form to flicker more.
one can even restrict using WM_SIZING message but the position of the
window is changing slowly while doing so.
does anyone know the logic how the window minimum size is restricted in the
form.

please help me ,
Thank you,
Harry
Jul 21 '05 #1
3 2114
Hi,
I just know that there is SizeChanged as an event in the Form class.

Helpful?

"Harry_Crow" wrote:
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 resized.
but I find using this will make the controls on the form to flicker more.
one can even restrict using WM_SIZING message but the position of the
window is changing slowly while doing so.
does anyone know the logic how the window minimum size is restricted in the
form.

please help me ,
Thank you,
Harry

Jul 21 '05 #2
thank you, I was able to solve the problem.

One can use the WM_GETMINMAXINFO message and restrict the minimum and the
maximum size of the form

"Julien" wrote:
Hi,
I just know that there is SizeChanged as an event in the Form class.

Helpful?

"Harry_Crow" wrote:
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 resized.
but I find using this will make the controls on the form to flicker more.
one can even restrict using WM_SIZING message but the position of the
window is changing slowly while doing so.
does anyone know the logic how the window minimum size is restricted in the
form.

please help me ,
Thank you,
Harry

Jul 21 '05 #3
thank you, I was able to solve the problem.

One can use the WM_GETMINMAXINFO message and restrict the minimum and the
maximum size of the form

"Julien" wrote:
Hi,
I just know that there is SizeChanged as an event in the Form class.

Helpful?

"Harry_Crow" wrote:
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 resized.
but I find using this will make the controls on the form to flicker more.
one can even restrict using WM_SIZING message but the position of the
window is changing slowly while doing so.
does anyone know the logic how the window minimum size is restricted in the
form.

please help me ,
Thank you,
Harry

Jul 21 '05 #4

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

Similar topics

2
by: Xenophobe | last post by:
I have a popup window (required by the client) containing a form and would like to prevent users from accessing it directly. They are instead required to access the page via a hyperlink on another...
1
by: Patrick Dunnigan | last post by:
Hi, I am attempting a bulk copy from a c program into SQL Server 2000 using DBLib in freeTDS 0.63 RC11 (gcc 3.4.3, RH 9). I am getting an error message that I cannot find any documentation on. ...
2
by: Nicolae Fieraru | last post by:
Hi All I have a form, with a few input boxes (number of input boxes can vary). Each input box has a name such as in1, in3, in7, etc (their names can be in any order, although increasing). I...
12
by: David Sworder | last post by:
Hi, I'm writing an application in which a client (C#/WinForms) and server (C#/service) interact with one another. The client establishes a "session" with the server but for scalability reasons...
2
by: Damien Sawyer | last post by:
Hi, Can someone recommend the 'best practice' for ensuring that the user doesn't resize a form (MDI child) to be smaller than a given w * h? I've been playing with resetting the size in the...
0
by: Bill Rowell | last post by:
ASP .NET has a built in limit of the request size (which is configurable) of 4MB. So, if a user were to upload a file that exceeded this, an exception is thrown and a not so informative page is...
4
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...
4
by: Jacob.Bruxer | last post by:
I've been unable to find a simple answer to what I initially thought was going to be a simple question. I want to be able to restrict the size of my forms in a VB.net project. I don't want users...
8
by: sneddo | last post by:
Ok I am trying to do the above, I have got a script that will restrict the length but it requires the user to enter the field and hit a key, before it will work. This would normaly be find, but...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

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.