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.
Unfortunately, activation email could not send to your email. Please try again.

Putting Class in Component Tray

Thread ID:

Created:

Updated:

Platform:

Replies:

694 Jul 31,2002 01:08 PM Jul 31,2002 03:51 PM Windows Forms 2
loading
Tags: FAQ
Eric Franz
Asked On July 31, 2002 01:08 PM

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

Administrator [Syncfusion]
Replied On July 31, 2002 01:17 PM

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

Eric Franz
Replied On July 31, 2002 03:51 PM

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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;