Question Problem with Generic Type User Control

avar0

New member
Joined
Aug 1, 2012
Messages
1
Programming Experience
1-3
Hello, first of all, english is not my natural languaje, so sorry if this thread is hard to understand, also is my first thread here, so i may not considering some things.

Well, my problem is this:

I'm using VS.NET 2005, and I'm developing an User Control, i need that user control to be generic typed, but if I transform it to a generic type i can't use it as control in visual studio, I mean, VS can't recognize my dll as a valid control, but if I remove the generic type it work's fine.

My question is: am I missing something?, or there is anyway it can be done?.

Thnx for your attention!
 
You can't drag a generic type control to the design surface, or any type that requires parameters to create, because IDE can't guess what arguments to use.
You can of course write a generic class, and inherit that to a specific type control that can be added in designer.
 
Back
Top