[AccessD] A Good Reason for a Class

Lembit Soobik lembit.dbamail at t-online.de
Mon Mar 3 05:29:46 CST 2008


a transparent button is a good parking place for the focus

Lembit

----- Original Message ----- 
From: "Arthur Fuller" <fuller.artful at gmail.com>
To: "Access Developers discussion and problem solving" 
<accessd at databaseadvisors.com>
Sent: Monday, March 03, 2008 11:46 AM
Subject: Re: [AccessD] A Good Reason for a Class


> Thanks, JC. Gustav put me in the right direction and I'm sure that your
> classes will take me the rest of the way.
>
> I have one other very minor issue, which is this. Since no edits are
> permitted until the user clicks Update Data, then I need to place the 
> focus
> somewhere. I have a tab control on the form, so I guess I could place it
> there. At the moment I have a very small textbox control where I place the
> focus(and exclude it from the loops). Is there a better way?
>
> Thanks,
> Arthur
>
> On 3/2/08, jwcolby <jwcolby at colbyconsulting.com> wrote:
>>
>> Yea, I'm here.  I have a bunch of WithEvent class demos on my site
>> including
>> some that change the background color.
>>
>> If this is to be generic, IOW it should work with any form and the
>> controls
>> on those forms, then you will want a form class that any form needing to
>> do
>> this will use.
>>
>> That form would use a control scanner to find all controls on the form.
>> Additionally you would want a class for each control that you want the
>> background to change, for example a clsCtlTxt, clsCtlCbo etc.  Once you
>> have
>> those, the form class is initialized by the form, the form class
>> initializes
>> a class instance for each control and you are off.  The form class would
>> also control the form's AllowEdits property and any others you might need
>> controlled.
>>
>> Poke around through my demos and I am sure you will find the skeleton for
>> just this kind of thing.
>>
>>
>> John W. Colby
>>
> -- 
> AccessD mailing list
> AccessD at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com
>
>
> -- 
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.516 / Virus Database: 269.21.3/1307 - Release Date: 
> 02.03.2008 15:59
> 




More information about the AccessD mailing list