M
Michael Rodriguez
I have a feeling this isn't possible in C#.
In Delphi, when you define event handlers in a base class form, you can
choose them in the properties window on your descendant forms.
As an example, consider a TopClassForm that has a NumericKeyPress event
handler that handles the KeyPress event of a text box and allows numeric
characters only. Any form you inherit from TopClassForm (again, in Delphi),
can then choose NumericKeyPress directly in the Object Inspector (Properties
Window) of any text box on the screen.
Is this possible in C#, or do I have to code it by hand?
TIA,
Mike Rodriguez
In Delphi, when you define event handlers in a base class form, you can
choose them in the properties window on your descendant forms.
As an example, consider a TopClassForm that has a NumericKeyPress event
handler that handles the KeyPress event of a text box and allows numeric
characters only. Any form you inherit from TopClassForm (again, in Delphi),
can then choose NumericKeyPress directly in the Object Inspector (Properties
Window) of any text box on the screen.
Is this possible in C#, or do I have to code it by hand?
TIA,
Mike Rodriguez