Hi Ken,
I played around with some IIF() clauses, but couldn't get anything to work as you want it to.
I would recommend setting the property in the Init() since the expression for the property is otherwise evaluated before the object really exists (and during design time as you noticed), which can lead to some problems if you're referencing the object, the property belongs to. I know you didn't want to hear that, but I thought I'll say it anyway :)
Regards,
Armin
>Hi,
>
>I have "=MyFunction()" in the tooltiptext property on some controls. It works fine at runtime. The issue is that when I open the class (a form class) in the designer, it runs the function right then - at design time.
>
>Is there any way to keep that value in the property without it running the function at design time? I know I can set it in init code, but I'd rather just be able to type it in the prop sheet.
>
>thanks,