使用鼠标控制移动和调整运行时大小 [英] Control move and resize runtime with mouse

查看:70
本文介绍了使用鼠标控制移动和调整运行时大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用此移动和在运行时调整窗体上的控件(使用鼠标) [ ^ ]移动和调整大小控制运行时间。

它工作正常,除非光标越过控制边界(例如它强行关闭应用程序。



我无法理解在哪里放置异常处理代码。



我尝试了什么:



我已经尝试将其放入resize方法。

I'm using this Move and Resize Controls on a Form at Runtime (With Mouse)[^] for move and resize control runtime.
It's working fine except when cursor crosses border of control(e.g shrinking) it forcefully closes application.

I can not understand where to put exception handling code.

What I have tried:

I've tried putting it in resize method.

推荐答案

如何在文章底部的论坛中提出这个问题。这样,作者就会收到有关他/她的代码的问题的通知。
How about asking this question in the forum at the bottom of the article. That way the author gets notified you have a question about his/her code.


这篇关于使用鼠标控制移动和调整运行时大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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