Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Icon in TaskBar

Status
Not open for further replies.

1todd1

Programmer
Jan 19, 2002
17
NZ
I have a form on which I've set the controlbox property to false and the caption to nothing. I did this because I wanted a custom title bar, which i've got. However, obviously, the taskbar icon doesn't have a caption or Icon. I'm wondering if there's a way to set the taskbar Icon without having the default titlebar appear over the form. Or another way to have an Item in the taskbar.

So Far I have - to put the text in the taskbar - nothing for the icon.



' API functions
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long

Private Declare Function SetWindowText Lib "user32" Alias "SetWindowTextA" (ByVal hwnd As Long, ByVal lpString As String) As Long


Private Sub Form_Load()
Dim retVal As Long

retVal = SetWindowText(Me.hwnd, "The new title)
End Sub



Can anyone help. It will use an API ,but am not sure which one. Thanks for you time Todd :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top