473,503 Members | 1,696 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Preventing resizing of a Form ?

By default a Form is resizeable.

How do I prevent the resizing of a Form ?

Ken

May 25 '07 #1
3 1564
form.FormBorderStyle =
System.Windows.Forms.FormBorderStyle.FixedSingle
You may also hide the minimize and maximize buttons:
In form designer set to false the following 2 properties: MinimizeBox
and MaximizeBox

Ken Williams a scris:
By default a Form is resizeable.

How do I prevent the resizing of a Form ?

Ken
May 25 '07 #2
A form has a "FormBorderStyle" property, which you can change in the design
mode in the Properties window.

--
http://www.rackaroo.com
"Ken Williams" <ke*****@mercedes.comwrote in message
news:46***********************@newsspool3.arcor-online.net...
By default a Form is resizeable.

How do I prevent the resizing of a Form ?

Ken

May 25 '07 #3
On May 25, 10:42 am, "Ashot Geodakov" <a_geoda...@nospam.hotmail.com>
wrote:
A form has a "FormBorderStyle" property, which you can change in the design
mode in the Properties window.

--http://www.rackaroo.com

"Ken Williams" <kenn...@mercedes.comwrote in message

news:46***********************@newsspool3.arcor-online.net...
By default a Form is resizeable.
How do I prevent the resizing of a Form ?
Ken
Hi,

Furthermore (without changing the border style),
You can set the minimum and maximum size of the window to be the same.

Moty

May 25 '07 #4

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

Similar topics

0
2616
by: TJ Talluto | last post by:
<facts> I have a "month calendar" that always displays exactly 42 days... and alongside is a vertical box that displays the detail (form fields) of any particular select event that appears on the...
1
5199
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...
12
6693
by: Søren Reinke | last post by:
Hi there I have a little problem. How do i make sure that a graph is not redrawn while the form with the graph is being resized ? I have tried to add a mouse up/down event handler on the...
6
51892
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...
11
17804
by: Sharon | last post by:
I'm writing a new control derived from UserControl. I need to get an event when the control is done resizing. I tried the Resize, SizeChanged, Move and the Layout events and I also tried to...
1
1220
by: Simon Jefferies | last post by:
Hello, How can you prevent the resizing of a custom UserControl on a form? At the moment, I am resetting the width and height in the SizeChanged event. There must be a better way, there used...
2
1755
by: Nina | last post by:
Hi there, I've tried everything that I know to prevent usre resizing datagrid columns, but nothing works. Following are the code that I used. Please tell me what's wrong with them. Thank you....
6
4523
by: JDeats | last post by:
I have a WinForms based application written for the .NET Framework 2.0 and in this application I need to be able to be able to take some action in code when the user finishes resizing the form. ...
10
7038
by: mishrarajesh44 | last post by:
hii all, I am facing a problem currently.. i have a script for image uploading and resizing.. the image uploading takes place properly for every size images.. but, the resizing works for...
0
7083
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7278
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6988
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7456
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5578
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5011
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
3166
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3153
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
734
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.