阅读背景:

我如何将窗体形式按钮拖动到特定点但只能在检查新点的位置后?

来源:互联网 

I would like to allow user to drag the button to a point either right(+X) or left(-X) based on which direction the user drags the button. I'm new to windows forms and a walk-through would be appreciated.(In my example, I hard-coded the new position increment by 10 pixels but I want the user to be able to drag the button as far as he wants). Here's my current code:I would like to allow user to drag the button t




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: