Hi, I'm facing a strange behaviour when I try to get the ctlUniTextBoxXP's handle calling his hWnd method. If I do it in Form_Load OR in Form_Activate I get 2 different values for the same control! Eg. Form_Load -> H2006FC Form_Activate -> H2106FC
I think in Form_Load you expose the handle of somewhat hidden, and when the control is completely painted in Form_Activate I get the "real" handle. Is there a way to read a unique handle, regardless where the code is executed?
The handle of the internal textbox can change from time to time because some properties (some of those we give you at runtime) require that the handle is recreated. For example the 'RightToLeft', 'HideSelection', 'ScrollBars', 'Alignment', 'MultiLine' properties require the control to be recreated (this is a Windows limit)
So if you changed one of the above properties you'll have you handle changed.