VB .NET 2003中的BUG? [英] BUG in VB .NET 2003?

查看:80
本文介绍了VB .NET 2003中的BUG?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我发现以下问题,这是一个错误吗?


创建一个新项目,并在主窗体,添加一个包含几个样本的列表框

项目。在列表框的DoubleClick事件中,添加:


Me.Dispose()


然后运行项目,双击项目列表框关闭

窗口,然后发生异常。


有什么问题?我想通过双击

列表框来关闭表单...

谢谢,


Andy

Hi to All,

I found the following issue, is this a bug?

Create a new project and, in the main form, add a listbox with a few sample
items. In the DoubleClick event of the listbox, add:

Me.Dispose()

Then run the project, double click on an item in the listbox to close the
window and then an Exception occurs.

What is the problem? I would like to close the form by double clicking on
the listbox...
Thank you,

Andy

推荐答案

什么是例外?

" Andy" <无**** @ nospam.com>在消息中写道

news:9F ********************** @ news2.tin.it ...
what''s the exception?
"Andy" <no****@nospam.com> wrote in message
news:9F**********************@news2.tin.it...
大家好,

我发现了以下问题,这是一个错误吗?

创建一个新项目,并在主窗体中添加一个列表框少量
样品。在列表框的DoubleClick事件中,添加:

Me.Dispose()

然后运行项目,双击列表框中的项目以关闭
窗口然后发生异常。

有什么问题?我想通过双击列表框关闭表格......
谢谢你,

Andy
Hi to All,

I found the following issue, is this a bug?

Create a new project and, in the main form, add a listbox with a few sample items. In the DoubleClick event of the listbox, add:

Me.Dispose()

Then run the project, double click on an item in the listbox to close the
window and then an Exception occurs.

What is the problem? I would like to close the form by double clicking on
the listbox...
Thank you,

Andy



在文章< 9F ********************** @ news2.tin.it> ;, 没有**** @ nospam.com

说...
In article <9F**********************@news2.tin.it>, no****@nospam.com
says...
有什么问题?我想通过双击列表框关闭表格...
What is the problem? I would like to close the form by double clicking on
the listbox...




试试Me.Close()。


-

Patrick Steele

Microsoft .NET MVP
http://weblogs.asp.net/psteele


嗨Andy,

你没有关闭它,你杀了它,看看Patrick的消息

Cor
Hi Andy,
You are not closing it, you are killing it, look at the message from Patrick
Cor


这篇关于VB .NET 2003中的BUG?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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