| View previous topic :: View next topic |
| Author |
Message |
Tsudeki Newbie
Joined: 09 Apr 2004 Posts: 10
|
Posted: Apr 9th, 2004 07:10 PM Post subject: Need help hiding my form's caption bar... |
|
|
Okay..by the title this sounds really really simple..but here's the problem:
I can't get rid of my form's caption bar EVEN IF I set the form's border to 0. The only way I can get rid of it is to delete the caption's text. However I've gotten some complaints from the users of my program and they seem to want the form's caption on their start bar(since if it's not on the form, it won't appear on the start bar...this is where my problem lies..). I've tried several methods of getting rid of the title bar but none of them seem to let me keep the actual caption..
Hopefully I've made enough sense @_@...anyway, thanks in advance for any assistance.. |
|
| Back to top |
|
P.T.A.M. Administrator

Joined: 08 Oct 2003 Posts: 752 Location: Greece
|
Posted: Apr 9th, 2004 07:30 PM Post subject: |
|
|
You can use the SetWindowText API to set the text in the caption and it won't show the caption bar :
[vb:1:59e3726c0d]Option Explicit
Private Declare Function SetWindowText Lib "user32" Alias "SetWindowTextA" (ByVal hwnd As Long, ByVal lpString As String) As Long
Private Sub Form_Load()
SetWindowText Me.hwnd, "Test"
End Sub
[/vb:1:59e3726c0d]
And welcome to the board ^_^ _________________ No one is completely useless. They can at least be an example of what to avoid. |
|
| Back to top |
|
Tsudeki Newbie
Joined: 09 Apr 2004 Posts: 10
|
Posted: Apr 9th, 2004 07:35 PM Post subject: |
|
|
wow thanks That fixed it right up ^_^
Thanks both for the fast reply and the fix I'll probably be stopping by here more often  |
|
| Back to top |
|
P.T.A.M. Administrator

Joined: 08 Oct 2003 Posts: 752 Location: Greece
|
Posted: Apr 9th, 2004 07:38 PM Post subject: |
|
|
No problem
| Quote: | I'll probably be stopping by here more often  |
Glad to hear that  _________________ No one is completely useless. They can at least be an example of what to avoid. |
|
| Back to top |
|
|