I didn’t… It seems these properties are read-only. They cannot be set in code. But how can we create a window at run-time with the above properties (Close, Min, Max, Resizable)?
Yes, of course I can do that. But, the problem was unexpected for me: during coding also the read-only properties are suggested. This was the reason why I was so astonished why this small piece of code didn’t work… Tim, Pawel thank you for your help.
We must avoid using a read-only property incorrectly. Now everything seems OK since there is no error message or warning. I didn’t expect these properties to be defined as read-only. So I didn’t check the docs… I have no idea why these properties are defined as read-only.
Emile, I have learned my lesson: from now on I will first consult the documentation again before posting a new issue on the forum…But this problem seemed so simple…
I don’t think it’s always a mistake to ask in the forum if you’ve already tested things and they don’t behave logically.
In this case, the IDE should have thrown a compiler error. The fact it didn’t would have meant the documentation probably would tell you the same (I mean, the issue is in the IDE; that’s the thing to fix).