Resize a Form

G

Guest

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
 
M

Morten Wennevik

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?
 
M

Mark Broadbent

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 said:
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?
 
M

Morten Wennevik

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.
 
M

Mark Broadbent

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!).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

TableLayoutPanel Resize 1
[WPF] Resizing with WPF 2
Form Resize or Form Move? 2
Resizing question. 10
TreeView Resize 2
resize events on windows form 5
ImageLists and runtime resizing 1
Resize Image 2

Top