关于Win Form:this之间的差异.Opacity = 0,this.Visible = false和this.Hide()? [英] Regarding Win Form: Differenece between this.Opacity=0, this.Visible=false and this.Hide() ?

查看:97
本文介绍了关于Win Form:this之间的差异.Opacity = 0,this.Visible = false和this.Hide()?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关于Win Form应用程序:

 之间有什么区别? .Opacity =  0 ; 



  .Visible =  false ; 



 这个 .Hide(); 





Plz详细说明了吗? div class =h2_lin>解决方案

请看我对这个问题的评论,这是非常不正确的。如果你总是可以简单地阅读每个属性/方法,为什么要问错误?



Opacity与可见性无关,在任何意义上都没有,它非常像颜色成分和ARGS颜色;不完全,但只是阅读它: http://msdn.microsoft.com/en-us/library/system.windows.forms.form.opacity%28v=vs.110%29.aspx [ ^ ] 。



并且调用 Hide()与赋值false相同可见。同样,这里有一个明确的陈述: http://msdn.microsoft.com/en-us/library/system.windows.forms.control.hide%28v=vs.110%29.aspx [ ^ ]。



请不要问这样的问题。这种懒惰太多了。请改为阅读文档。



-SA


浏览以下链接:



1. 不透明度 [ ^ ] - 这可用于为表单设置动画。例如褪色。

2. 可见 [ ^ ] - 此属性定义表单的可见性。

3. 隐藏() [ ^ ] - 这是一种更新表单Visible属性的方法。


Regarding Win Form Application: What is differenece between

this.Opacity = 0;

,

this.Visible = false;

and

this.Hide();

?

Plz elaborate it?

解决方案

Please see my comment to the question, which is quite incorrect. Why asking incorrect questions if you can always simply read about each property/method?

Opacity has nothing to do with visibility, not in any sense, it is pretty much like color component and ARGS color; not quite, but just read about it: http://msdn.microsoft.com/en-us/library/system.windows.forms.form.opacity%28v=vs.110%29.aspx[^].

And calling Hide() is the same as assignment false to Visible. Again, there is a clear statement which is put here: http://msdn.microsoft.com/en-us/library/system.windows.forms.control.hide%28v=vs.110%29.aspx[^].

Please, don't ask such questions. This kind of laziness is too much. Read the documentation instead.

—SA


Go through the following links:

1. Opacity[^] - This can be used to animate the form. e.g. Fading.
2. Visible[^] - This property defines the visibility of the form.
3. Hide()[^] - This is a method which updates the 'Visible' property of the form.


这篇关于关于Win Form:this之间的差异.Opacity = 0,this.Visible = false和this.Hide()?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆