Design-time Move Icon

  • Thread starter Thread starter mikesnoise
  • Start date Start date
M

mikesnoise

I noticed that the TabControl has a little icon that the user drags to
move the control around on the form. I'm trying to figure out how to
add the same functionality to my own control's designer. Can anyone
help me out? Is this a standard behavior/adorner/glyph?

-Mike-
 
Mike,

This is implemented using design behaviors. I personally haven't use them
and as far as I know this is pretty advanced feature but MSDN has some
documents on it that may help you

Look at the following links:
Docs for the behavior class
http://msdn2.microsoft.com/en-us/library/system.windows.forms.design.behavior.behavior.aspx

Docs for the Behavior Services
ms-help://MS.MSDNQTR.v80.en/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_fxdeveloping/html/7c60cc41-4324-46b5-b444-b39eda7cb33f.htm


These are available only in VS2005
 
Thanks for the help. I'm already aware about behaviors. What I'm
specifically looking for is if .NET provides a set of pre-defined
behaviors like the move icon that the TabControl uses. I'd like to be
able to have the exact same icon and behavior.

-Mike-
 
Back
Top