473,493 Members | 4,333 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

form with vertical sizing only

I'm trying to make a form that can be sized vertically but not
horizontally. Any pointers?
First attempt was to
set the form's FormBorderStyle = Sizeable
set the form's MaximumSize.Width to the fixed width

Unfortunately, the users still sees these cursors, SizeNESW, SizeNWSE,
and SizeWE. Also, they can size the form vertically by grabbing one
of the East/West borders near the North/South edge. I'd prefer to not
have that behavior, only the North/South borders should actually size
the form.
Nov 16 '05 #1
2 1938
Set the width somewhere within the resize event. Then if someone does resize
it horizontally, it'll instantly spring back to your desired width. That
said, an application with this behaviour would prove very annoying and many
people would uninstall it.

"blah blah blah" wrote:
I'm trying to make a form that can be sized vertically but not
horizontally. Any pointers?
First attempt was to
set the form's FormBorderStyle = Sizeable
set the form's MaximumSize.Width to the fixed width

Unfortunately, the users still sees these cursors, SizeNESW, SizeNWSE,
and SizeWE. Also, they can size the form vertically by grabbing one
of the East/West borders near the North/South edge. I'd prefer to not
have that behavior, only the North/South borders should actually size
the form.

Nov 16 '05 #2
"Bonj" <Bo**@discussions.microsoft.com> wrote in message
news:3A**********************************@microsof t.com...
Set the width somewhere within the resize event. Then if someone does resize it horizontally, it'll instantly spring back to your desired width. That
said, an application with this behaviour would prove very annoying and many people would uninstall it.

"blah blah blah" wrote:
I'm trying to make a form that can be sized vertically but not
horizontally. Any pointers?
First attempt was to
set the form's FormBorderStyle = Sizeable
set the form's MaximumSize.Width to the fixed width

Unfortunately, the users still sees these cursors, SizeNESW, SizeNWSE,
and SizeWE. Also, they can size the form vertically by grabbing one
of the East/West borders near the North/South edge. I'd prefer to not
have that behavior, only the North/South borders should actually size
the form.


I'm the original poster.

I do not have the problem you mentioned because (oops I should have written
this in my original post) I also set MinimumSize.Width to the fixed width.
Nov 16 '05 #3

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

Similar topics

2
2501
by: Brian Vallelunga | last post by:
Greetings, I'm attempting to create a tabbed box with CSS and Javascript and am having some problems. I have three tabs and three tab content areas. When the page is loaded, two of the three...
2
2408
by: Stanimir Stamenkov | last post by:
I'm trying to clear some sizing issues relative to the initial containing block and the root document element. The sample document I'm trying with: http://stanio.info/viewport_fill.html ...
8
2246
by: needin4mation | last post by:
Is this the correct way to resize the controls on a form when the form is resized? protected override void OnResize(EventArgs ea) { listViewFiles.Width= this.ClientSize.Width-5;...
1
1170
by: Peteroid | last post by:
It looks like when I make a Form resizable and/or hit the maximize button that it shows garbage (unitialized memory) for the new portions of the form and then fills it in with background color. It...
6
1931
by: =?Utf-8?B?bGpsZXZlbmQy?= | last post by:
I want to implement the following: If the user clicks on the border of a form, then I want to show a box around the form that represents the form's bounds. As the user moves the mouse only the...
2
1668
by: John B | last post by:
Hi all, I want to prevent the user being able to vertically size a control, in the same manner that single line textbox and autosize labels do. I can override SetBoundsCore which prevents the...
2
3591
by: Susan Bricker | last post by:
Hi. I am stumped. I have a form that when opened via logic (VBA OpenForm) the screen appears to flash but the form does not appear. I've traced and it certainly goes to the form's module and the...
1
1270
by: Earl Anderson | last post by:
With A2003, WXP, whenever I go into the Code Window (from Design View) and then close out of the Code Window, back to Design View and then to Form View, my form(s) are always cut short...
0
6980
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
7157
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,...
0
7192
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
4886
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
3087
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
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1397
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
637
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
282
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.