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

Load object thru coding 2

Status
Not open for further replies.

dekcool

Programmer
Oct 2, 2002
231
PH
hi!

is it possible to code or to load an object that is not
in the form design

any comments will appreciate ____________________________________________________
Invest your time in learning, Not just practicing.

DEK
 
Take a look at the end of the thread222-442679. In there, i place code to create a control array. It's a good example on how to do runtime loading of controls.

I hope this helps you,
Carlos Paiva
 
Is this what you mean?
put this in the form_load event:

Set Command1 = Controls.Add("VB.CommandButton","Command1")
Command1.Caption = "Test Test"
Command1.Left = 50
Command1.Top = 30
Command1.Width = 200
Command1.Height = 70
Command1.Visible = True She's a Lithium Flower
 
thanks to both of you it helps ____________________________________________________
Invest your time in learning, Not just practicing.

DEK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top