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.
 
Miha,

I thought that's what we tried, but I'll dig into it further...

Thanks,

Les
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top