PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: tom cone jr on November 11, 2005, 07:55:07 PM

Title: Initialize control properties on opening form
Post by: tom cone jr on November 11, 2005, 07:55:07 PM
What's the recommended technique to set initial properties of controls on your form, when the form first opens.   A simple example:  How to set the current system date in a label each time a form opens?

Thanks.

-- tom
Title: Initialize control properties on opening form
Post by: TechSupport on November 11, 2005, 10:52:05 PM
The best place to put form and control initialization is in the WM_CREATE message handler for the Form. The WM_CREATE message is fired just prior to the Form being displayed. The controls on the Form exist at that time so you should have no problem changing their properties at that time.