Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

program design with dataset and user controls

Status
Not open for further replies.

Spyrios

Technical User
Jan 24, 2004
22
US
Hi I wanted to see if anyone had any suggestions...

I'm developing an application that has one form and three user controls that were previously forms. This is because they navigate through the menu option and there is always the feel of a SDI.

My problem(s) have been that 1, I'm using the new C# Express 2005 beta (which is really great, except that cuts out features, like connecting to anything other than a desktop database in the server explorer), and 2, the main problem, is that I'm trying to share a strongly typed dataset throughout the whole project. Each of the user controls use the same dataset, and I only want to make one pull from the sql server (obviously). But I'm not sure I'm going about it the right way. Take for example user control A, which has a combo box. Instead of
private System.Windows.Forms.ComboBox
I'm changing it to
public System.Windows.Forms.ComboBox
and then accessing it and setting it's data source in the load event of the form where I fill the dataset...

I haven't completely made it through all the way doing this, so I'm not sure if this way will bomb out as well (I've tried several ways), but it just doesn't seem right.

Anyway, thanks for any help.

Michael
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top