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 General / November 2006

Tip: Looking for answers? Try searching our database.

Can't use base method for event

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
FutDev - 02 Nov 2006 12:23 GMT
I've got a form that is interrited from a base form. The base form defines
methods, event handlers, that I want to call from the derived class.

This form was originally developed in .Net 1.1 and converted over to .Net 2.0.
This worked fine in .Net 1.1 but in .Net 2.0 the designer thrown the
following error:
"Method XXX cannot be the method for an event because a class this class
derives from already defines the method".

The only workaround I have found is to re-define the event handlers in the
derived class and make them call the base.

Is there a way of making this work?
Stoitcho Goutsev (100) - 06 Nov 2006 16:33 GMT
Hi,

Can you post simple sample that demonstrates the problem?

Signature

Stoitcho Goutsev (100)

> I've got a form that is interrited from a base form. The base form defines
> methods, event handlers, that I want to call from the derived class.
[quoted text clipped - 10 lines]
>
> Is there a way of making this work?

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.