Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm Controls / February 2005

Tip: Looking for answers? Try searching our database.

ActiveControl override

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Matthew - 14 Feb 2005 10:31 GMT
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...

Any ideas or workaround suggestions?

Thanks, // Matthew
Herfried K. Wagner [MVP] - 14 Feb 2005 12:42 GMT
"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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.