Results 1 to 4 of 4

Thread: Bloody annoying!

  1. #1
    Guest

    Exclamation

    Is there any way at all to create a command button at run time?

  2. #2
    Guest
    Read these two threads:
    http://forums.vb-world.net/showthrea...threadid=20242
    http://forums.vb-world.net/showthrea...threadid=20166

    Or search the Forum on this site using:
    Controls at Runtime
    Create Controls at Runtime

    One of those two'll be good if those two threads aren't enough.

    And from your subject line: Bloody annoying!

    I bet your English ;].

    [Edited by Matthew Gates on 07-04-2000 at 11:36 PM]

  3. #3
    Guest
    Cheers. That helped.

    For anybody who can't be f***ed visiting the links above here's what's there:

    Code:
    Private Command1_Click()
     For x = 1 to 6
      Load Command1(x) 'create instance, but in an array
      Command1(x).Move x, y, width, height
     Next x
    End Sub
    And to think I was actually just going to have 30 command buttons.

  4. #4

    Thumbs up In vb 6.0 it is possible

    Hi,
    In VB 6.0 it is possible to create command button or virtually any control at runtime.

    However creating command buttons with array is different story. Because you need to have a control already in the design time.


    Get me at http://vbpage.to, the only free redirect URL for VB programmers

    Bye

    Rajesh Kannan


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