I know that for a button, I can set its visiability by Property -> Behaviour -> Visible -> True/False.

However, how can I configurate this behaviour in my coding?


Also, how can I write coding to close a window, which is something like this.Close( ) in C#?