• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 252
  • Last Modified:

how can i take off the minimize,maximize and close botton in a form

how can i take off the minimize,maximize and close  botton in a form in VFP 9.0.
The form has the property DESKTOP=.t.
0
luciliacoelho
Asked:
luciliacoelho
  • 4
  • 4
  • 2
4 Solutions
 
JF0Commented:
minbutton=.f.
maxbutton=.f.
closeable=.f.

These will hide the min and max, and make the close button unclickable.
0
 
JF0Commented:
closable=.f.
0
 
pcelbaCommented:
Set form's property ControlBox = .F.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
JF0Commented:
you can also do titlebar=.f. but that will hide the entire bar.
0
 
pcelbaCommented:
minbutton=.f.  and   maxbutton=.f.  behavior probably depends on OS. It does not hide appropriate buttons in Vista.

ControlBox = .F.  or TitleBar = 0  works as you need.
0
 
luciliacoelhoAuthor Commented:
all the solutions solvs part of the problem, because i want to close the min and max button, bur not the close button. Can i mantain this buttons active?
0
 
JF0Commented:
simply use my first answer but change closable=.f. to closable=.t.

but keep in mind pcelba's consideration to OS.
0
 
pcelbaCommented:
It seems the problem has changed... You've been asking to remove the close  botton also.

My consideration was probably not so correct - when you set both minbutton=.f.  and  maxbutton=.f.  both buttons disappear even in Vista.

So, the JF0 answer is correct.
0
 
luciliacoelhoAuthor Commented:
the problem is solved. thanks
0
 
pcelbaCommented:
You are welcome
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

  • 4
  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now