CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2000
    Posts
    16

    create at runtime

    i wanted to create textboxes at run time . Is it possible ???


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: create at runtime

    in VB 6 you can do this with the Add method of the Controls collection.

    Dim l as Control
    set l = me.Controls.Add("VB.Textbox", "mylabel")
    l.Visible = true
    l.Top = 0
    l.Caption = "test"



    ...unless you want to use Control arrays and use the Load function.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured