Above code works Perfectly for single textbox, Thanks for this code.
but If in the form there are many textbox and i want to use same code for all,
according to this code we have to create may procedure this is not goodd,
so how can i use same code for all textbox?

Can you solve my problem?

Yes, we can probably solve this. As soon as we see some code...

but If in the form there are many textbox and i want to use same code for all,

What do you mean to use same code for all? Please post the codes you did in your project and describe your problems and what do you want.

You can use an event handler for multiple controls of the same type. The easiest way is at runtime by

AddHandler CONTROL.EVENT, AddressOf yourhandlerSub

Or if you want to do it at design time just add

,Handles CONTROL.EVENT

to the end of the handler declaration.

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.