CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: VisualBasic

  1. #1
    Guest

    VisualBasic

    I have created an instance of an activex control dynamically (which is not referred i.e. it does not appear in the toolbox) at run time by adding the control to the forms controls collection. But I am having problem to access the properties and calling the methods.Please help me.


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

    Re: VisualBasic

    here is a sample for accessing the properties:

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





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