Yes creating a ActiveX is one way but you can also use a class.
But I will let Éric Moreau or Guy Barrette expline it, because I do not have a simple example to show online.
>
>Since there is no inheritance in VB, what is the best way to reuse this functionality on other form without cut & paste the code in each control KeyPress() event? Do I have to create an ActiveX control?
>
>TIA
>
>>Another option would be to change the text to uppercase after the user leaves the textbox.