Results 1 to 4 of 4

Thread: Vb Questions

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2001
    Posts
    10

    Vb Questions

    How can you run a button and after executing the code, execute another button within that code?

    During a game how do you reload the same form.

    Gorf

  2. #2
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    I dont understand your first question, but your second you would just unload it and the load it again. This function should do it for you :

    Code:
    Public Sub ReloadForm(frmName As Form)
        Unload frmName
        Load frmName
    End Sub
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  3. #3
    PowerPoster Arbiter's Avatar
    Join Date
    Sep 2000
    Location
    Manchester
    Posts
    2,276
    At the end of executing the code on the first button you'd call:

    Button2_Click

    Where Button2 is the name of the button.
    Gentile or Jew,
    O you who turn the wheel and look to windward,
    Consider Phlebas, who was once handsome and tall as you...

  4. #4
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Ok I understand the question now
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

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