How to extend a Windows Forms Control

  • Thread starter Thread starter Al Reid
  • Start date Start date
A

Al Reid

I need to extend a couple of controls to add a few custom properties, methods, etc. What is the correct way to do this. My first
attempt (inheriting the control and adding the properties and methods) seems to work. However, several times the IDE has lost the
controls. BTW, I'm using VB2005.
 
Al Reid said:
I need to extend a couple of controls to add a few custom properties,
methods, etc. What is the correct way to do this. My first
attempt (inheriting the control and adding the properties and methods)
seems to work. However, several times the IDE has lost the
controls. BTW, I'm using VB2005.

Mhm... This should basically work. Alternatively you could write an
extender control.
 
Herfried K. Wagner said:
Mhm... This should basically work. Alternatively you could write an
extender control.

It works great until the controls get lost. The form Designer looses the controls, but keeps the Declaration (Withevents ..). One
of the extended controls is a listView. When it gets lost, the ColumnHeaders don't get lost, but the Listview does. Very Strange!


--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top