a where to question

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

Guest

This is a very general question.

I have a form. On this form I have many controls and several tab pages. To
complete this form I will need to make a couple of calls to a database, and I
have several subs that set values based on input of controls on the form.

Do I put all of my subs/functions that reference or set form controls on the
form itself? Is there a way to set a form control from another module or
something. The form code is >1200 lines now. I come from an .asp world and
it seems big and unmanageable now and it's going to get bigger.

How do you pros do it?
 
Koda,

It will not make it easier, however probably better to manage.

Set your data access in a component (a seperate class however everything is
already in it and with a component you can drag and drop).

Create as many as is possible usercontrols (I mean limited not as many as is
technical possible) That is much easier than on ASP

http://msdn.microsoft.com/library/d...rfsystemwindowsformsusercontrolclasstopic.asp

http://msdn.microsoft.com/library/d...conwalkthroughcreatingcompositewfccontrol.asp

I hope this helps,

Cor
 
Back
Top