Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Overriding Base Events in C#
Message
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
00641684
Message ID:
00641911
Views:
15
Private is private to the current class level. Protected is probably what you want which means any derived class can see it.

+++ Rick ---

>>>In my inherited form I use private overrides void form1_Load() but I keep getting an error there is noo method to override. can anyone help me. Does overriding work like VFP(unless You say dodefault() in inherited form will it run the base event).
>>
>>
>>Hi, Fred.
>>
>>You must declare the parentclass method as "virtual", in order to be able to use the overrided on the subclass.
>
>Hi Claudio,
>
>My understanding is that he cannot declare his override method as private since declaring the base class method virtual makes it public and his base class method cannot be private either. So his override must be public as well.
>
>Pat.
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Reply
Map
View

Click here to load this message in the networking platform