Thank you for your greate answer
it's greate and works well in prg but when i want to simulate it with a form and grid it doesn't work i copy all you did but there is no answer.
I tried ocx with sprase=.f. but it shows when it gets focus only.
Thank you again.
Ali Mohammad Hossein Zadeh