Hi Krishna and welcome to Forums!

What version of Vb do you use - VB6 or VB.net? You should've posted your question directly in one of those forums instead.