0

I know that title is kinda miss leading, but i couldnt figure out another way to explain it. I know theres a way, but I dont know how to do it.

Ive got a Save code that I have about 5 differnet times in my application. How do I make it so that I can just type in something like Do Save, and it locates the save code and follows it through, then returns to where it was.

Would save me around 50 lines of code if someone could help me out.

Thanks

2
Contributors
3
Replies
4
Views
6 Years
Discussion Span
Last Post by Unhnd_Exception
0

Create a Save Sub

Public Sub Save()
       '.......your save code
End Sub

public sub btnSave_Click(byval sender as object, byval e a eventargs) handles btnsave.click
   Save()
end sub

Edited by Unhnd_Exception: n/a

0

My saviour once again.

Could I also use a background worker?

0

Background Worker? Start a new thread for that 1.

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.