Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Inheriting button click
Message
From
15/11/2004 12:34:13
 
 
To
15/11/2004 11:35:59
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
00961402
Message ID:
00961432
Views:
8
Juan,

No, there is no dodefault() in .NET like there is in VFP. There's a couple of things you could do, but first, let me ask you ... do you want the default (base class) code run first? If so, that's the way it would work anyway. Put a delegate on your derived form for that button's click event and the base form's button click eventhandler will run first, then the derived form's button click eventhandler will run.

If you want the opposite behavior, you'll have to do things differently. I seem to remember an earlier thread about this, but I haven't searched for it.

~~Bonnie


>I designed a base form class based on Les Pinter's sample in book VFP to VB.net , i would like to overwrite one button's click event and also perform the default code of that button in form's base class, i could do that changing the button's modifiers property to Public, but if i want to overwrite completely the event, i delcate clik's event in base class as public overridable but in this case i can't perform the default behaviour.
>
>Is there any way like in Vfox,
>dodefault()
> **here my code
>or
>mycode
>dodefault()
>mycode
>
>Thank's
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Reply
Map
View

Click here to load this message in the networking platform