Alias a DataSet?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm trying to create a class form, for other forms to inherit, which utilizes a 'standard' for the command buttons. I'm essentially using the same logic generated by the Form Wizard for the command button actions, but need to 'alias' the dataset in the code for it to apply to all inherited forms, since each dataset has to have a unique name. I've tried doing it a number of ways already, but no joy. Any thoughts appreciated.... holler if I need to post examples.

Thx,

Les
 
Hi Les,

Declare a virtual property that returns a dataset and let the derived forms
override it.

--
Miha Markic - RightHand .NET consulting & development
miha at rthand com

Les Cardwell said:
I'm trying to create a class form, for other forms to inherit, which
utilizes a 'standard' for the command buttons. I'm essentially using the
same logic generated by the Form Wizard for the command button actions, but
need to 'alias' the dataset in the code for it to apply to all inherited
forms, since each dataset has to have a unique name. I've tried doing it a
number of ways already, but no joy. Any thoughts appreciated.... holler if I
need to post examples.
 
Back
Top