Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamically add objects i.e.: textboxes, to a frame?

Status
Not open for further replies.

cucuzz0

Programmer
Joined
Feb 23, 2002
Messages
10
Location
US
Would like to give the user the capability to dynamically add a control, a textbox, on a Frame (so i can scroll the frame) So far I can add controls to a form and scroll the form, but the controls soon move off the form, forcing the user to scroll down. If I could add them to a control, such as a Frame, and then scroll the frame, then ... woo woo. Anybody know how?
 
Dear u can add the textboxes at run-time with following code
u have to make textbox and frame control array okay..
Load Text1(1)
Frame1(1).Top = 0
text1(1).Top = 300
text(1).Left = 300
Set text1(1).Container = Frame1(1)
text(1).Visible = True
Frame1(1).Visible = True

got it? about scrolling u have to do extra-coding with vertical scroll bar handling the thing...
Regards
Nouman
 
duh ... ya. perhaps you didn't read the question, dear.
 
I thought part of the question was about adding controls to a frame
e.g.
Set text1(1).Container = Frame1(1)
as shown by Nomi2000.

Generate Forms/Controls Resizing/Tabbing Class
Compare Code (Text)
Generate Sort Class in VB or VBScript
 
you're right. thank you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top