I have approximately 75 text boxes on my form.

Whenever one of these boxes get the focus I'd like it to select the whole field - basically so if there's a value already in there, you simply have to type over it rather than highlight the text in the box yourself.

Obviously I can do this by putting code in the gotfocus event, but I don't want to have to do this 75 times.

How can I get round this please?

Thanks.