Control difference between Hide() and Visible?

前端 未结 3 1865
陌清茗
陌清茗 2020-12-15 16:29

I was wondering about the difference between using a Control’s Hide() method compared to setting the Visible property to false.

When would

3条回答
  •  别那么骄傲
    2020-12-15 16:56

    It is really more about your preference here. The two methods will achieve the same result in the same way.

    I prefer calling methods, which say what they're doing to change the state of objects. Some people prefer setting the properties of an object.

提交回复
热议问题