Results 1 to 5 of 5

Thread: calling a button?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2004
    Posts
    87

    calling a button?

    how would i call a button from another forum? i tried call form2.command2_click but doesnt work

  2. #2
    Hyperactive Member vbud's Avatar
    Join Date
    Jan 2002
    Location
    Mru 20 17S, 57 33E Goal: Get out of the BOX Status: In The Shadows!!! Target Posts: 3,000,000,000
    Posts
    378
    try
    Code:
    form2.command2.Value = True
    >!v!<
    Free your mind, stop thinking
    http://inspirone.blogspot.com

    Please rate this post if it helped you

  3. #3
    KING BODWAD XXI BodwadUK's Avatar
    Join Date
    Aug 2002
    Location
    Nottingham
    Posts
    2,176
    button click function is public isnt it


    VB Code:
    1. 'WRONG
    2.  
    3.   private sub command2_click()
    4.  
    5.  
    6.   'Right
    7.   Public sub command2_click()

    If you dribble then you are as mad as me

    Lost World Creations Website (XBOX Indie games)
    Lene Marlin

  4. #4
    Fanatic Member ahara's Avatar
    Join Date
    Nov 2003
    Location
    Toronto
    Posts
    531
    By default, the click events are Private...you would therefore have to change it as shown by Bodwad....if any sub, function, or event is private, it can only be called from within the form that contains it.
    "Knowledge is gained when different people look at the same information in different ways"

    - Louis Pasteur

  5. #5
    Frenzied Member Spajeoly's Avatar
    Join Date
    Mar 2003
    Location
    Utah
    Posts
    1,068
    Actually,

    form2.command2.Value = True

    Works, it's how I always have clicked a button.

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