Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: Defining a control at run-time


Message #1 by "Gopalakrishnan" <ntg@s...> on Thu, 30 Aug 2001 14:42:21 +0530
The problem with creating controls at runtime is that as far as I am aware
there is no way to successfully process control arrays.
The only method I have found is to provide your own array control
methodology where you tack on a index identifier onto the name of the
control. Also this means that you have declare each object separately.

I am fairly sure of this but don't take my work for it. Try creating new
instances and see if the events work for previous instances.


-----Original Message-----
From: Chris Tacke [mailto:ctacke@r...]
Sent: 30 August 2001 15:27
To: professional vb
Subject: [pro_vb] RE: Defining a control at run-time


Yes.  Create a single instance of the control and give it an Index value of
0.  After that you can create new instances with the Load command.



> -----Original Message-----
> From: Gopalakrishnan [mailto:ntg@s...]
> Sent: Thursday, August 30, 2001 5:12 AM
> To: professional vb
> Subject: [pro_vb] Defining a control at run-time
>
>
> hi all,
>
>    How can I add a control to a form at runtime and program it in
> normal way? The control can be anything such as a CommandButton
> or an ActiveX Control.
>
> Thanks,
>
> N.T.GOPALAKRISHNAN



  Return to Index