Vivek_India wrote:
is there any thread safe way to do it
Of course, but once again this is the same issue of you trying to write code for a subject that you have not studied. In my experience, software development does not really work out well using that approach. And as I stated before, posting messages on internet forums is no substitution for putting in the proper effort of studying the subjects. http://www.google.com/search?hl=en&q=MSDN+BeginInvoke&btnG=Google+Search&aq=f&oq=[^]