473,799 Members | 3,638 Online
Bytes | Software Development & Data Engineering Community
+ 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.Wid th 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 1967
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.Wid th 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**@discussio ns.microsoft.co m> wrote in message
news:3A******** *************** ***********@mic rosoft.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.Wid th 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.Wid th 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
2513
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 content areas are set to "display:none;". When a user clicks a tab, I call a function that changes the display style of the appropriate tab page to "display:block;". This is fine, as the correct block is displayed. The problem lies with Mozilla....
2
2425
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 Basically, for some tests I want to specify the height of an example DIV element inside the BODY using percentages of the viewport height. For this to work the BODY container should fill the viewport height where I'm using:
8
2260
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; lisInfoList.Width=this.ClientSize.Width-5; } What about buttons and other controls? Any links are appreciated.
1
1188
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 only shows it very briefly, but it's VERY visible during this time. This happens with re-sizable forms too. And it 'feels' like re-sizing is 'jerky'; that is, lags a bit from my actions. I turn off visiblity to the controls on the form while...
6
1954
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 box's bounds would change. When the user releases the mouse the form's bounds would be set to the bounds of the box. Note that this is very similar to how the Splitter control works. Does anybody know how to do this?
2
1677
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 actual sizing but the vertical resize grips still show for the user, even though they have no effect. Any ideas appreciated. JB
2
3603
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 Form_Open and Form_Load routines...but it doesn't appear. I've looked around at the attributes of the form, at the attributes of the other forms opened in the background but I can't figure it out. I even went so far as to force the other...
1
1286
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 horizontally. I must then drag the right and/or left vertical edge of the form "outwards" to pull it back to its original proper size. Is this just my Access/Windows 'misbehaving' or has it happened to any of you---and, if so, is there a solution? Thx...
0
9541
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10027
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9073
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7565
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6805
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5463
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5585
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4141
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 we have to send another system
3
2938
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.