473,397 Members | 2,099 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,397 software developers and data experts.

Resize a Form

Hi,

I am wondering if it is posible to disable resizing of a form in design
editor. Or is it possible just at runtime? I don't see there any property
kind of "Resize = false".

Thank you,

Lubomir
Nov 16 '05 #1
4 20230
Hi Lubomir,

Setting the FormBorderStyle property in the design editor to any of the Fixed or None will disable resizing when running the program.

If you mean you don't want to be able to resize the form while working inside the design editor, I don't think you can. Why would you want to?

--
Happy coding!
Morten Wennevik [C# MVP]
Nov 16 '05 #2
Yes it is possible. Use the "Locked" property of the form (set to true). You
can also use this on independant form controls too OR if you want to lock
everything use Tools/Lock Controls in the designer menu.

Personally I can see benefit to this to prevent accidental resizing
(especially when there might be multiple developers working on the form code
from time to time)

Br,

Mark.

"Morten Wennevik" <Mo************@hotmail.com> wrote in message
news:opscgevlg8klbvpo@morten_x.edunord...
Hi Lubomir,

Setting the FormBorderStyle property in the design editor to any of the Fixed or None will disable resizing when running the program.
If you mean you don't want to be able to resize the form while working inside the design editor, I don't think you can. Why would you want to?
--
Happy coding!
Morten Wennevik [C# MVP]

Nov 16 '05 #3
Heh, what do you know, so that is what Locked is for :)
I can't imagine not having tried it at some time, but I must have forgotten about it.

And you are right, multiple developers using the same form would be a reason to lock a form.

--
Happy coding!
Morten Wennevik [C# MVP]
Nov 16 '05 #4
Hey Morten dont feel bad, I just happened to rediscover by accident myself
just before I saw the post :) -was actually trying to do something else on a
control (to no avail!).

"Morten Wennevik" <Mo************@hotmail.com> wrote in message
news:opscgodawuklbvpo@morten_x.edunord...
Heh, what do you know, so that is what Locked is for :)
I can't imagine not having tried it at some time, but I must have forgotten about it.
And you are right, multiple developers using the same form would be a reason to lock a form.
--
Happy coding!
Morten Wennevik [C# MVP]

Nov 16 '05 #5

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

Similar topics

1
by: Roger | last post by:
Hi All, I have an app where I change the size of the form at run time using controls and I do not want the user to be able to resize the form, I have removed the min and max buttons. I have tried...
3
by: Z D | last post by:
Hello, BACKGROUND: ============== I've created a Windows User Control that contains an Image Control (among other controls). The user control handles the picture resize event. Whenever the...
1
by: Diogo Alves - Software Developer | last post by:
Hi there, Since my last questions wasn't very clear, I will do it in a different way. I want to resize my app but while resizing I dont want to see content of the form, I just want to see the...
4
by: Rob Richardson | last post by:
Greetings! I have a form with a listview, a menu, and a few text boxes, labels and command buttons. I want to resize the listview when the form is resized to that the widths of the spaces...
2
by: DraguVaso | last post by:
Hi, I have to DataGrid's on a form, one on the top of my form, the other at the bottom, but they though each other somewhere in the middle. What I want now is that, when I resize the form, they...
8
by: nirdeshonline | last post by:
Hi, I have added a simple listbox in windows form under c# 2.0. It contains a collection of approx 10 strings as list items. Now when i resize the form whole listbox flickers. Please tell me...
11
by: Ajith Menon | last post by:
I have created a windows application in which the form needs to be resized on the MouseMove event. The windows resize function takes a lot of CPU cycles. And as the resize function is called on the...
2
by: Smitty | last post by:
Did a search & found nothing on this. VB6 did a resize on form load according to what I've read. I Resized screen under vista & now the text box doesn't resize to form's clientarea. Code exists...
1
by: Bob Alston | last post by:
I have a system where many subforms are used. Often the size of the subform had to be larger than could be displayed without scrolling. I set the height of the subform to the typical height...
10
by: =?Utf-8?B?UmljaA==?= | last post by:
A lot of users at my workplace use different screen resolutions, and I build apps to use 1680 x 1050 pixels res by default. But some users are using 800 x 600, and the apps are too large for their...
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: 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: 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:
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
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
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
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,...
0
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...

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.