如何在Word中移动Windows.Forms控件? [英] How to move a Windows.Forms Control in Word?

查看:260
本文介绍了如何在Word中移动Windows.Forms控件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在单词中移动一个Control,例如一个复选框?



没有为控件提供方法所以我试图删除然后在新位置再次添加它。我对这个解决方案的问题是,控件变得完全白了,它的事件不再起作用了。



非常感谢您的帮助

Is it possible to move a Control, for example a checkbox, in word?

There is no method provided for the controls so I tried to remove and then add it again at the new location. My problem with this "solution" is, that the control gets completly white and it's events doesn't work anymore.

Many thanks in advance for your help

推荐答案

我认为这是一个Word扩展?如果没有,你就会以错误的方式使用术语,并且错误地理解了一些概念。



每个视觉控件的形式,只需设置一个新的位置即可移动value,它采用我认为的Point对象,或者,单独设置相关控件的Left和Top属性。
I take it this is a Word extension?? If not, you've using terminology in the wrong ways and have gotten some concepts wrong.

Form each every visual control, you can move simply by setting a new Location value, which takes a Point object I believe, or, individually setting the Left and Top properties of the control in question.


这篇关于如何在Word中移动Windows.Forms控件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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