all groups > vb.net controls > november 2004 >
You're in the

vb.net controls

group:

Invisible @ Runtime Controls


Invisible @ Runtime Controls Venkat
11/29/2004 8:58:43 AM
vb.net controls: Hi there,
Does anyone know how to develop a custom control
in .NET that works like an INVISIBLE @ RUNTIME Control?

At present I have created my custom control without any
interface. It also has all the necessary properties and
methods to control it. This control is invisible and
doesnt appear on the interface @ runtime.

I need to create a control that works like a IMAGELIST
or FILEDIALOG controls which when placed on the form
would get placed on the PLACEHOLDER beneath the form
designer and not on the form. Any idea how to achieve it?

In VB6, we had an INVISIBLE property while designing
the control so that it works like an invisible control
(Eg. VB6 TIMER control). But dont know its equivalent
property in .NET to make it hidden so that it docks on to
the placeholder.

Anyone any clue? Pls help!

Re: Invisible @ Runtime Controls anonymous NO[at]SPAM discussions.microsoft.com
11/29/2004 9:14:54 AM
Thanks a lot! Infact I found it and was back here to post
this solution and I found this answer here. Great!!

Well its that we need to create COMPONENTS and not
CONTROLS for these kind of needs! So either follow what
Wagner said (Inherit from
System.ComponentModel.Component) or from the Solution
explorer, add a COMPONENT to your project and continue
working.

Enjoy coding...


Venkat

[quoted text, click to view]
Re: Invisible @ Runtime Controls Herfried K. Wagner [MVP]
11/29/2004 6:07:22 PM
"Venkat" <shriven@gmail.com> schrieb:
[quoted text, click to view]

Make your /component/ inherit from 'System.ComponentModel.Component' instead
of inheriting from 'System.Windows.Forms.UserControl'.

--
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