"Matthew" <matthew.bone@medidoc.se> schrieb:
> According to the helpfiles, Visual Studio .NET 2003, ActiveControl is
> a virtual property. If one attempts to overrides ActiveControl it
> generates a syntax error as follows: ActiveControl get/set method not
> marked as virtual, abstract or...
I assume that this is a bug in the documentation or implementation. Instead
of inheriting from 'ContainerControl', you can implement the
'IContainerControl' interface yourself. I know that this is not always a
viable solution.

Signature
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Matthew - 17 Feb 2005 13:08 GMT
> "Matthew" <matthew.bone@medidoc.se> schrieb:
> > According to the helpfiles, Visual Studio .NET 2003, ActiveControl is
[quoted text clipped - 6 lines]
> 'IContainerControl' interface yourself. I know that this is not always a
> viable solution.
Ok, thanks for your suggestion. As you say, not always a viable
solution. Our original problem was the following: We wanted a way to
keep/remember the focused control on each TabPage in a TabControl
after switching/changing between TabPages. We did our own workaround
for this by subclassing the TabControl control. Our focus control
works perfectly. However, one 'small' problem remains (as is in
windows.forms.TabControl). It is necessary to navigate with the
keyboard, i.e 'Tab', before a selection rectangle is drawn around a
CheckBox or RadioButton.
In our projects we make intensive use of many standard .NET controls,
during wich we discover some bugs and/or other
functionality/properties wanting. Normally our time is to short to
await a google answer, however we find a few issues and do some
workarounds. Any given answer is often of use to us in the next
iteration of development. But if these issues are of interest/use to
you also, we are happy to post any qestions/issues we come across.
Best regards, // Matthew