Results 1 to 5 of 5
  1. #1
    Join Date
    Dec 2004
    Posts
    7

    Unhappy Unanswered: create a new command button with VB

    Is it possible to create a new command button on a form through VB (say, when the form opens). If so, how??
    Also, is it possible to control its properties/position in the form, and assign a procedure to this new button?
    Thanks for any help.

  2. #2
    Join Date
    Oct 2003
    Location
    Ger
    Posts
    1,969
    Provided Answers: 1
    Yes you can do it using CreateControl Just have a look to this subject, you will have a nice example....

  3. #3
    Join Date
    Oct 2003
    Location
    Ger
    Posts
    1,969
    Provided Answers: 1
    Concering the secound question, you can do it too, using the Module object will will be able to insert you code.
    Also have a look to CreateEventProc and its example. You can even do more.

  4. #4
    Join Date
    Nov 2004
    Location
    London
    Posts
    10
    Thank you so much for your help, this will set me on my way.
    Cheers
    masamasa

  5. #5
    Join Date
    Oct 2003
    Location
    Ger
    Posts
    1,969
    Provided Answers: 1
    Keep me informed....
    Good luck.

Posting Permissions

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