[AccessD] Create Control in Existing Form

Charlotte Foust cfoust at infostatsystems.com
Thu Jul 1 19:21:09 CDT 2004


That would be the way, although you might need to set the Left property
as well to get it lined up as desired.  We actually do this with some
forms where we only show certain controls under specific circumstances.
If you're going to do this, you may have to change the size of the form
as well in the same code.

Charlotte Foust

-----Original Message-----
From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] 
Sent: Thursday, July 01, 2004 4:10 PM
To: accessd at databaseadvisors.com
Subject: RE: [AccessD] Create Control in Existing Form


thank you Charlotte, how can I move it ?
what would be a correct way to do something like this if i want to move
record txtA1 ? --

Private Sub Command9_Click()
txtA1.Top = 0.33
txtA1.Visible = True

End Sub


> You can create a new control in design view.  Why would you want to 
> create one in an active form anyhow?  It would make more sense to 
> simply make an existing textbox visible.
>
> Charlotte Foust
>
> -----Original Message-----
> From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com]
> Sent: Thursday, July 01, 2004 6:48 AM
> To: accessd at databaseadvisors.com
> Subject: Re: [AccessD] Create Control in Existing Form
>
>
> Is it possible to create control (textbox) in a form i am already in 
> at runtime ? Everything i find on the web seems to be about creating 
> new forms and new controls in them.
>
>
> -----------------------------------------
> Make Money and Find Love at Finally.com 
> http://www.finally.com/?link=webmail
>
>
> --
> _______________________________________________
> AccessD mailing list
> AccessD at databaseadvisors.com 
> http://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com
> --
> _______________________________________________
> AccessD mailing list
> AccessD at databaseadvisors.com 
> http://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com



-----------------------------------------
Make Money and Find Love at Finally.com
http://www.finally.com/?link=webmail


-- 
_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com



More information about the AccessD mailing list