鼠标事件 [英] Mouse Events

查看:64
本文介绍了鼠标事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始学习如何在vb.net中进行鼠标事件,而我在msdn上看到的第一个地方有一些代码可以使我滚动.问题是我复制并粘贴了代码,并得到了三个我不理解的错误.好像我缺少图书馆 或我不知道从哪里开始的帮助将不胜感激.

I'm starting to learn how to do mouse events in vb.net and the first place I looked on msdn had a bit of code to get me rolling. Problem is I copy and pasted the code and get a three errors that I don't understand. It seems as though I'm missing a library or something I don't know where to start any help would be appreciated.

加载"找不到

"TextBox1";没有声明

"TextBox1" is not declared

"System.MouseEventArgs";未定义

"System.MouseEventArgs" is not defined

公共类Module1
Public Class Module1

推荐答案

VBnoob101,

Hi VBnoob101,

我创建了一个演示并从侧面再现了您的问题,打开Form1.vb [Design]并将文本框控件拖到设计中.

I create a demo and reproduce your issue on my side, open the Form1.vb[Design] and drag textbox control to the design.

然后单击Form1->事件->选择负载->选择加载方式.

Then click Form1 -> event -> select load -> select load method.

与TextBox1.MouseDown方法相同.

The same as TextBox1.MouseDown Method.

最诚挚的问候,

吴可乐


这篇关于鼠标事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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