0
Leo's Avatar, Join Date: Nov 2006
Leo
Go4Expert Member
The problem comes when i have to make the button1 visible on the click of button2 and then make it invisible when the process(method Test()) gets over in the code.
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Is the problem you are facing relating to the thread then you can use the Control.CheckForIllegalCrossThreadCalls = false in the constructor of the form.
0
Leo's Avatar, Join Date: Nov 2006
Leo
Go4Expert Member
I have found the solution to this which is working fine.I am using Background worker component to do this.

I had the problem that once the code in Dowork is completed i had the put the code of enabling the timer to execute some code in the timer which did not work at all.It may execute once or does not execute at all.

Right now i am using Dowork() method where i put the upload process.And then i have a timer which will monitor this upload process and then once the upload process is over ,i have a 2nd timer which will do the rest of the process as usual before.

Thanks Shabbir for taking time to reply to my question
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
My pleasure.