shlvy Posted October 30, 2003 Posted October 30, 2003 Hi I have a form register with 2 subs: -InsertData(obj as Object, e as EventArgs), inserts data to tha database. -CheckUser(obj as Object, e as EventArgs), to check if is already user in the database. The 2 subs work correctly independent , i want to merge them to one sub , i mean when i click on the submit the 2 subs will work in the same time. Thank's Quote
bungpeng Posted October 30, 2003 Posted October 30, 2003 Work at the same time? I thought you should "CheckUser" first, then only "InsertData"? Quote
shlvy Posted October 30, 2003 Author Posted October 30, 2003 First sub Hi And how can i do that ? Thank's Quote
bungpeng Posted October 30, 2003 Posted October 30, 2003 If you want both functions run concurrently, then you need to use multitheading. Otherwise, just call those 2 functions in your button click event. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.