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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB6 Adding a Control in Time design 1

Status
Not open for further replies.

plopez

Technical User
Apr 2, 2002
66
CL
Hi:

I need to add a control in my program in VB6 using time of design code.

What´s the way to do it?

Thanks
 
Here's how to add a textbox:

Dim txtBox As VB.TextBox
Set txtBox= Form1.Controls.Add("VB.Textbox", "txtTextBox")
txtBox.visible = true
txtBox.Left = 50
txtBox.Top = 50
 
Hi DrJavaJoe:

Your answer was all what i needed.

Thanks a lot.

[bigsmile]
 
Hey DrJavaJoe,are you still there?

Can you help me with the same question but using an array of textbox controls.

I appreciate your help.

Regards....[pipe]
 
I would add the first control to the form at design time, set it's visible property to False and it's Index to 0. Then when I needed the first control I would make this one visible and place it where I wanted. Then with each additional control that I needed I would do something like Load Text1(NewIndex).
 
Dr.JavaJoe:

Your idea was really good.......I did it and it worked fine.

I thank you very much

Regards............[wavey2]
 
Dr JavaJoe:

I need your help again.

I populate a MSFlexgrid from an Access Database using a DataControl too.

My problem is that my MSFlexgrid is filled only a few rows
(500 of 50.000)

If I do this with a Datagrid there is no problem.

What can I do to populate the whole file from Access in my MSFlexGrid. (I prefer using MSFlexgrid than Datagrid in my application because is easier to programing the cells)

I apreciate your help....








 
New question! Start a new thread so we can all see whats going on. See faq222-2244 paragraph 6

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'People who live in windowed environments shouldn't cast pointers.'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top