I will be very thankful if someone can help me out....;)

What have you attempted till now ?

There are many examples in the forum on the same topic, you can go through them.

One of them is here.

i found my answer in previewsly tthread...:lol:

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.