>Hi
>I need change Label1.Caption depending of value PbLE (1 or 2).
>In properties for Lavel1.Caption =iif(PbLE=1,"text 1","text 2")
>But when PbLE value interactiv changed Label1.Caption doesn't change, Thisform.Refresh - doesn't work.
The property sheet is evaluated only on startup. You have to place your code somewhere else.
For instance, if the label depends on a TextBox.Value, you might place code in TextBox.InteractiveChange(), or perhaps in TextBox.LostFocus(), to change the Label.Caption.
I think you can also put the code into your Label1.Refresh(): This.Caption = iif(...); but better do some experiments.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)