|
-
Jan 16th, 2000, 02:46 AM
#1
Thread Starter
Member
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]
-
Jan 16th, 2000, 04:17 AM
#2
Frenzied Member
Try this:
Form1.BorderStyle = 0
-
Jan 16th, 2000, 04:17 AM
#3
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
-
Jan 16th, 2000, 11:41 AM
#4
Thread Starter
Member
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]
-
Jan 16th, 2000, 03:15 PM
#5
Lively Member
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]
-----------------------
-
Jan 16th, 2000, 11:03 PM
#6
Thread Starter
Member
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]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|