PDA

Click to See Complete Forum and Search --> : Hiding Controlbox at runtime


X_Darknight_X
Jan 16th, 2000, 01:46 AM
How would you hide or remove the controlbox at runtime? Yanno, the titlebar of a form where it has the minimize, maximize and close button. Don't forget I want to know how you could do it at runtime! Thanx

------------------
David Underwood
Cannabatech Corporation

ICQ - 14028049 (http://www.icq.com/14028049)
E-mail - darknight23@hotmail.com

CyberCarsten
Jan 16th, 2000, 03:17 AM
Try this:

Form1.BorderStyle = 0

MartinLiss
Jan 16th, 2000, 03:17 AM
While someone may be able to tell you how to do what you want to do, if you let us know what it is that you want to prevent from happening (I assume that's the reason for the question), perhaps someone can solve the problem in a more traditional way.

------------------
Marty

X_Darknight_X
Jan 16th, 2000, 10:41 AM
I don't want anything to prevent from happening. I want to be able to press a command button and have the titlebar (of the form) disappear. But you can't because if you use the form properties to do it, is says you can't assign to read only property.

------------------
David Underwood
Cannabatech Corporation

ICQ - 14028049 (http://www.icq.com/14028049)
E-mail - darknight23@hotmail.com

Maartin
Jan 16th, 2000, 02:15 PM
Well there is only one way that i know works.
It might not be the result that you are looking for but here goes.

Change the form border style to 3 - Fixed Dialog. The set the form ControlBox to false
but leave the caption of the form there.

When you want the titlebar to disapear just clear out the caption of the form.

I hope it helps.


------------------
-----------------------
Maartin
dinamite@onwe.co.za
-----------------------

X_Darknight_X
Jan 16th, 2000, 10:03 PM
That would work but then you would lose the minimize, maximize and close button of the form. Doesn't anyone know any API that could do this?

------------------
David Underwood
Cannabatech Corporation

ICQ - 14028049 (http://www.icq.com/14028049)
E-mail - darknight23@hotmail.com