|
-
Apr 1st, 2016, 01:38 PM
#1
Thread Starter
Member
Call GoTo from first Private Sub, and use it in Private Sub Button5_Click
Hi everyone,
I'd like to abort my GoTo loop in "Private Sub Button1_Click", by clicking the" Private Sub Button5_Click". I need to activate "GoTo eend" from Button1_Click by clicking Button5_Click, so it will jump to eend: and will stop GoTo loop.
In different words: I'd like call Button1's "GoTo" function by clicking Button5. I've found this code, but it calls whole sub:
Code:
Private Sub Button5_Click(sender As Object, e As EventArgs) Handles Button5.Click
'stop manually'
Call Button1_Click(Me, e)
End Sub
Thanks for help, I'll give reputation
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|