Hi!
I guess this is a refreshing behaviour during loading the form. When form is dis[played first time, for some reason temporarily label's Enabled property was .T. for a moment of form displaying. After form displayed, your code runs and sets label's property to .F.. This usually should cause label's refresh, but looks like it does not fire or some sequense of events for form initializing cause cancelling of the refreshing.
Try to call a Draw method of the form in the Activate event, but I'm not sur ethis can help...
>I have a simple Label class that I use throughout my applications. I have recently started to set the label's Enabled property to be false as this causes the label to appear embossed upon my form.
>
>However, at runtime some of the disabled labels are appearing as if they were enabled. The label's Enabled is still set to be false but the label is not embossed.
>
>Furthermore, should I then programmatically toggle the enabled property to true and back to be false again, the label embosses nicely as it should.
>
>I say "some" of the labels as not all of them are afflicted, the only differences between them are there caption settings.
>
>Obviously this problem is purely aesthetic and I am using the programmatic toggle in the label's init event to workaround. Has anybody else come across this or can anyone shed any light onto what may be happening.
>
>Regards,
>
>Ben Sugden
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.