PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET a where to question

Reply

a where to question

 
Thread Tools Rate Thread
Old 23-06-2005, 02:45 PM   #1
=?Utf-8?B?S29kYQ==?=
Guest
 
Posts: n/a
Default a where to question


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?
  Reply With Quote
Old 23-06-2005, 03:21 PM   #2
Cor Ligthert
Guest
 
Posts: n/a
Default Re: a where to question

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...lclasstopic.asp

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

I hope this helps,

Cor


  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off