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
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