Groups | Blog | Home
all groups > vb.net controls > november 2004 >

vb.net controls : How can i use the designer view from a inherit Control?


vokuit00 NO[at]SPAM service-profis.de
11/23/2004 5:42:38 AM
Hello,

today i inherit a new class from ListView-Class. In this new class i
implement a ScrollBar-Event functionality with overriding the
WndProc-Method.

The functionality works fine, but is there a possibility to use a
inheritation of a control of .NET without loosing the possibility of
using the Designer to put the control onto a form?

Thanks

Herfried K. Wagner [MVP]
11/23/2004 6:52:16 PM
"Foxi" <vokuit00@service-profis.de> schrieb:
[quoted text, click to view]

You can still put the control onto a form.

The easiest way to get an icon for a control in the toolbox is adding a
dummy usercontrol and replacing its code with the implementation of your
inherited control.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
AddThis Social Bookmark Button