control.Show和BringToFront有什么区别? [英] What is the difference between control.Show and BringToFront?

查看:179
本文介绍了control.Show和BringToFront有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

显示/隐藏和BringToFront / SendToBack有什么区别?在哪种情况下,我们应该使用一对而不是另一对?

What is the difference between Show/Hide and BringToFront/SendToBack? In which situation we should use one pair instead of the other?

推荐答案

这些是完全不同的方法。

These are completly different methods.

Show():通过预先初始化视图的内容来显示视图上的控件。

Show() : shows the control on the view, by initializing the content of it before.

BringToFront SendToBack 作用于<$ c $关于其他控件的c> Z顺序。
但是控件已经可见。

BringToFront and SendToBack act on Z-order of that control in regard of others. But the control is already visible.

MSDN上 BringToFront


带来控制

Brings the control to the front of the z-order.

显示


向用户显示控件。

Displays the control to the user.

这篇关于control.Show和BringToFront有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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