如何使用vb重新定位表单中的对象NET在运行时? [英] How to reposition an object in a form using vb. NET at run-time?

查看:72
本文介绍了如何使用vb重新定位表单中的对象NET在运行时?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用vb重新定位表单中的对象。 NET在运行时?

How to reposition an object in a form using vb. NET at run-time?

推荐答案

Web表单在哪里?这是一个包含Web浏览器控件的VB.NET程序吗?如果是这样,您必须获取HTML并进行修改。显然,你不是在问一个ASP.NET应用程序,不管你是不是将你的问题标记为ASP.NET,而且因为如果你是ASP.NET开发人员,你就知道这是不可能的。
Where is the web form ? Is this a VB.NET program that contains a web browser control ? If so, you have to get the HTML and modify it. Obviously, you're not asking about an ASP.NET application, both b/c you did not tag your question as ASP.NET, and because if you're an ASP.NET dev, you'd know that's impossible.


你可以在运行时设置它们的位置,这个例子可以解释:



you can set position them at runtime, an example for explain that:

button1.top = 10 ';as integer, so it set position of button by heigh of form.
button1.left = 10 ';as integer, this also set position of button by widht of form.





最好的问候,

Psunyter



best regards,
Psunyter


这篇关于如何使用vb重新定位表单中的对象NET在运行时?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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