-
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
E-mail - [email protected]
-
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
-
Try this:
Form1.BorderStyle = 0
-
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
E-mail - [email protected]
-
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
[email protected]
-----------------------
-
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
E-mail - [email protected]