3

I have custom tool strip button

BindableToolStripButton : ToolStripButton 

It works well, but I don't know possibility to add this item to control in design menu..

enter image description here

Could I add my BindableToolStripButton to the designer menu?

Yuriy
  • 2,670
  • 6
  • 33
  • 48

3 Answers3

5

Add this attribute before your custom BindableToolStripButton class definition

[ToolStripItemDesignerAvailability(ToolStripItemDesignerAvailability.All)]

Ali .NET
  • 66
  • 2
2

I had the same problem. when I changed the declaration from

class MyToolStripButton : ToolStripButton

to

public class MyToolStripButton : ToolStripButton

it worked on the designer.

animuson
  • 53,861
  • 28
  • 137
  • 147
1

You have to derive from ToolStripControlHost Class like shown ESharp-online.

Khh
  • 2,521
  • 1
  • 25
  • 42