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

Threaded View

  1. #8
    Join Date
    Jul 2001
    Location
    maharashtra,india
    Posts
    181

    Re: Adding controls at runtime

    Code:
    Private Sub Command1_Click()
       Dim cmd As CommandButton
       Set cmd = Controls.Add("vb.commandbutton", "saf")
       cmd.Visible = True
    End Sub
    i dont know this code is working perfect for me
    and i have even suggested to 1 more guy and he rated me 10 points so i think it is working fine with him as well
    u search it
    Last edited by Cimperiali; August 12th, 2004 at 08:13 AM. Reason: (adding Code tags)

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