Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello All,

I am developing a small application in vb.net.

I set the property of the border style to the none and created custom title bar.
Now I am not getting taskbar properties. This means in task bar when I right click the mouse button am not getting close, maximize, minimize restore options.

How can I do that? Through coding or setting properties of the form?

Thanks in Advance.
Posted
Updated 14-Nov-11 22:09pm
v4
Comments
Sergey Alexandrovich Kryukov 15-Nov-11 2:22am    
Not quite clear. Please use "Improve question" above.
--SA
Dalek Dave 15-Nov-11 4:09am    
Edited for Grammar and Syntax.

1 solution

you need to try:
VB
Private Declare Function GetSystemMenu Lib "user32" (ByVal hwnd As Integer,
ByVal bRevert As Boolean) As Integer
Private Declare Function AppendMenu Lib "user32" Alias "AppendMenuA"
(ByVal hMenu As Integer, ByVal wFlags As Integer, ByVal wIDNewItem As
Integer, ByVal lpNewItem As String) As Integer



VB
Dim hSysMenu As Integer
hSysMenu = GetSystemMenu(Me.Handle.ToInt32, False)

'appends new menu items
AppendMenu(hSysMenu, 0, 1000, "Tray Me")
 
Share this answer
 
Comments
Member 7833588 15-Nov-11 21:31pm    
hi JerMans i tried the above code but now also am not getting..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900