Windows Develop Bookmark and Share   
 index > Windows Forms Designer > how to create a push pin as in VS toolbox
 

how to create a push pin as in VS toolbox

how to create a push pin(?) as in VS toolbox?
refer http://cid-8b311e948f4cc150.skydrive.live.com/self.aspx/FOR%20MSDN/Pushpin.jpg
Thanks, Bharathi
  • Changed Typebharathi_m Wednesday, August 19, 2009 4:52 AM
  •  
bharathi_m  Tuesday, August 18, 2009 10:44 AM

Hi,

Base on my understanding, I think you’d better use a custom form control. Then draw the CaptionButton. You can catch WM_NCPAINT message to draw the button.

The following articles tells about this:

http://www.codeproject.com/KB/wtl/CaptionButton.aspx?msg=1280213

And the docked container

http://www.codeproject.com/KB/toolbars/DockContainer.aspx

Best regards,

Ling Wang


Please remember to click “Mark as Answer�on the post that helps you, and to click “Unmark as Answer�if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Ling Wang  Monday, August 24, 2009 9:19 AM
There is a open source control in source forge
http://sourceforge.net/projects/dockpanelsuite/

Else, You will use user32.dll to make it.
ebread  Tuesday, August 25, 2009 2:46 AM

Hi,

Base on my understanding, I think you’d better use a custom form control. Then draw the CaptionButton. You can catch WM_NCPAINT message to draw the button.

The following articles tells about this:

http://www.codeproject.com/KB/wtl/CaptionButton.aspx?msg=1280213

And the docked container

http://www.codeproject.com/KB/toolbars/DockContainer.aspx

Best regards,

Ling Wang


Please remember to click “Mark as Answer�on the post that helps you, and to click “Unmark as Answer�if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Ling Wang  Monday, August 24, 2009 9:19 AM
There is a open source control in source forge
http://sourceforge.net/projects/dockpanelsuite/

Else, You will use user32.dll to make it.
ebread  Tuesday, August 25, 2009 2:46 AM

You can use google to search for other answers

Custom Search

More Threads

• The web page can display in the window form??
• Getting Assembly Path from within a UITypeEditor
• ArcSWAT
• VS 2005 can't add reference for a custom control!?
• doubt in c#
• Idesignerhost is blocking the mouse events?
• Disable tabPage?
• Differents types of ListBox Control
• MDI CHILD QUESTIOn
• System.Security.Permissions.FileIOPermission Exception