In article
<1193407069.523739.97220@y42g2000hsy.googlegroups.com>Cyr1dian
> My problem is that a custom control "newA" that inherits from a base
> custom control "baseA" is not displaying any contained controls -
> thatwere not inherited - at run time, but displays them fine at
> design time. [...]
Possibly a dumb question, but...could it be a z-order problem? With
the grid added in baseA obscuring the controls added by the derived
class?
Pete

Signature
I'm trying a new usenet client for Mac, Nemo OS X.
You can download it at http://www.malcom-mac.com/nemo
Cyr1dian - 29 Oct 2007 08:35 GMT
First thing I though of too ;)
I tried BrinToFront() and Visible=true at runtime, but to no avail.
Peter Duniho - 29 Oct 2007 09:11 GMT
> First thing I though of too ;)
>
> I tried BrinToFront() and Visible=true at runtime, but to no avail.
Well, since it did turn out to be a dumb question, here's the standard
advice: post a concise-but-complete sample of code that reliably
reproduces the problem.
Given that you got no other replies, I suspect that's your best hope of
getting some useful information.
Pete
Cyr1dian - 29 Oct 2007 10:25 GMT
Hi Pete,
It turned out to be my bad. When adding the control to the main form there
was some old code that didn't use the newer parts of the control.
Sorry for wasting your time. I found it entirely by luck though when
substituting my baseclass with an interface (to work around my problem) I
noticed the baseclass wasn't handled well by the control insertion code. What
added to the confusion was the fact that I could see all the controls I
needed in memory (makes sense afterwards) and some people did have similair
problems to mine (although I'm guessing with a different cause).
Thanks for you help anyway ;)
Grtz,
Cyr
Peter Duniho - 29 Oct 2007 18:36 GMT
> [...]
> Thanks for you help anyway ;)
You're welcome...even if all I did was ask a dumb question. :)