We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Putting Class in Component Tray

Does anyone know how to make a class (Class1 for example) that is not a control appear in the toolbox and component tray. The only way I know to get inside the component tray is to inherit from a timer or some other object that already uses it. This is a cheap workaround, does anyone have the right way? Thanks, Eric Franz Physicians Accounting Ltd

2 Replies

AD Administrator Syncfusion Team July 31, 2002 05:17 PM UTC

Make your class derive from the Component class. -Praveen Ramesh


EF Eric Franz July 31, 2002 07:51 PM UTC

I was unable to derive from the component class to get my problem to work. You would assume that the following code would do 2 things. 1: Let me see Class1 in the toolbox, and 2: Let me see Class1 in the Component Tray in the form designer onced I dragged the class to the form. Here is the code: Imports System.ComponentModel _ Public Class Class1 Inherits System.ComponentModel.Component End Class

Loader.
Up arrow icon