Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Deactivate Minimize/Maximize buttons?

Status
Not open for further replies.

clifff

Programmer
Mar 22, 2002
20
MD
How to make a window with minimize /maximize buttons deactivated. I want my window to be of fixed width & height.
Any ideas?
(Searched in the Fotm proprieties but nothing close to it)
cliff
 
I don't know how to disable the min/max buttons but I can tell yuo how to set the form's max/min size. Do you want that info?
James P. Cottingham

I am the Unknown lead by the Unknowing.
I have done so much with so little
for so long that I am now qualified
to do anything with nothing.
 
check the property immedietly above the FormStyle property, it should be expandable, (I think it's the BorderIcons property.) In that will be something like biSystem, biMinimize, biMaximize and biHelp. (I'm doing this from memory, so they may vary slightly...) make the biMinimize and biMaximize properties false. That will disable the minimize and maximize buttons. then make the FormStyle property Single, like Wings said. That'll fix your width and height and the user cannot change it. Cyprus
[noevil]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top