On Aug 09, 2006, at 16:01 UTC, D P wrote:

>   I'm trying to code the existance of controls on a window so that I can add 
> them as needed at runtime.

You can't create a control out of thin air, but you can clone an existing 
control.  Just put a control of the sort you want on the window, and set its 
Index property to 0, making it a control array.  Then you can create a new one 
at runtime, using "New" and the name of the control, e.g.:

  Dim a as New WhizzyField

where "WhizzyField" is the name you gave to the control in the form editor.  
Now you can adjust the properties of a (you'll want to at least move it so that 
it doesn't overlap the old one).  Note that a becomes a new member of the 
WhizzyField control array, and gets all the same event implementations an the 
original.

Best,
- Joe

--
Joe Strout -- [EMAIL PROTECTED]
Verified Express, LLC     "Making the Internet a Better Place"
http://www.verex.com/

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to