Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Visual Basic Forum for Visual Basic Programmers VB Forum Index » Interface and Graphics

Post new topic   Reply to topic
Need help hiding my form's caption bar...
View previous topic :: View next topic  
Author Message
Tsudeki
Newbie


Joined: 09 Apr 2004
Posts: 10

PostPosted: Apr 9th, 2004 07:10 PM    Post subject: Need help hiding my form's caption bar... Reply with quote

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
View user's profile Send private message
P.T.A.M.
Administrator


Joined: 08 Oct 2003
Posts: 752
Location: Greece

PostPosted: Apr 9th, 2004 07:30 PM    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website ICQ Number
Tsudeki
Newbie


Joined: 09 Apr 2004
Posts: 10

PostPosted: Apr 9th, 2004 07:35 PM    Post subject: Reply with quote

wow thanks Biggrin That fixed it right up ^_^

Thanks both for the fast reply and the fix Smile I'll probably be stopping by here more often Biggrin
Back to top
View user's profile Send private message
P.T.A.M.
Administrator


Joined: 08 Oct 2003
Posts: 752
Location: Greece

PostPosted: Apr 9th, 2004 07:38 PM    Post subject: Reply with quote

No problem Wink

Quote:
I'll probably be stopping by here more often Biggrin


Glad to hear that Biggrin
_________________
No one is completely useless. They can at least be an example of what to avoid.
Back to top
View user's profile Send private message Send e-mail Visit poster's website ICQ Number
Display posts from previous:   
Post new topic   Reply to topic    Visual Basic Forum for Visual Basic Programmers VB Forum Index » Interface and Graphics All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Visual Basic Forum runs phpBB | Forum Template © iOptional
VB Resources | SSL | Visual Basic