0

I've defined a class that inherits from Datagridview. Is it possible to put this on the toolbox in Visual Studio so that I can just click and drop on the Windows Form Designer?

TtT23
  • 6,876
  • 34
  • 103
  • 174

3 Answers3

1

Yes it its possible, right click on the toolbox and customize it.

opewix
  • 4,993
  • 1
  • 20
  • 42
1

In VS2012 (and probably earlier version too), if you compile your solution with any class that derive from Control or UserControl, VS should add your control at the top of the toolbox automatically. But in any case, your solution had to be compiled once for the control to be selectable in the toolbox.

LightStriker
  • 19,738
  • 3
  • 23
  • 27
0

You can see an example of how to do this in this stackoverflow question. You can find this topic in msdn here.

Community
  • 1
  • 1
Ikaso
  • 2,268
  • 19
  • 26