Results 1 to 14 of 14

Thread: Calling private subs in another private subs?

Threaded View

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2009
    Posts
    62

    Calling private subs in another private subs?

    Hi all,
    I'm trying to call a private sub in another private sub. For example ;

    Code:
    Private Sub Form1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Click
            '// For example, When I click on the Form1
            '// I want to call Button1_Click Sub.
    
        End Sub
    
    
        Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            MsgBox("Hi All !")
        End Sub
    
        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    
            '// Or when I clicked Button1
            '// I want to run codes in the
            '// Form1.Load Sub.
    
        End Sub
    How can I do this?
    Last edited by canavaroski90; Jun 15th, 2009 at 10:47 AM. Reason: Correcting

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