I created an activeX textbox control which is just a simple textbox control with some extra properties and stuff.

But for some reason the validate event does not fire.
I have a property called max which indicates what the maximum value is the user can enter.
Then when the control losses the focus want to fire this event.

I know I could use the lostfocus event, but what some times I will populate my new textbox with a value form a database and then the lostfocus event will not fire since I never entered the control. The value of the control was set using code.

Anyone knows how to fire the validate event?