在运行时查找标签的位置 [英] find location of label at runtime

查看:96
本文介绍了在运行时查找标签的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi


表单只有一个标签和按钮,点击按钮时会显示一个消息框

,它有标签位置.. ...



i需要在运行时标签的位置(点)可能吗?



谢谢

解决方案

尝试:

 MessageBox.Show(myLabel.Location.ToString()); 


hi
the form have only one label and button, when clicking of button the shows a message box
that is having location of label .....

i need the location ( point ) of label at runtime that is possible ??

thanks

解决方案

Try:

MessageBox.Show(myLabel.Location.ToString());


这篇关于在运行时查找标签的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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