0

I have a button that when pressed displays all the customers in the table. Other buttons are used to add or delete a customer record, or upload a batch of numbers. How can I fire the Click event of the View button after the Add or Delete buttons code has been executed? For example, this is the code for the Upload button

Private Sub btnImport_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnImport.Click
     AddBatch(LocationCode, filename)
     BuildScript()
     SaveScript()
     UploadScript()
 End Sub

I want the code that is in my view button to execute after my UploadScript() Sub. Any ideas?

2
Contributors
2
Replies
3
Views
9 Years
Discussion Span
Last Post by bajanpoet
0

Hi,

Add the below code within your sub where xxx is the name of the button you want to click:
xxx.PerformClick()

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.