I don't have a lighting bolt at the top like I normally do to add events. How do I add events in .NET 1.1 for Visual basic 2002?
我通常在顶部没有照明螺栓来添加事件。如何在.NET 1.1 for Visual Basic 2002中添加事件?
2 个解决方案
#2
I don't know if Visual Studio 2002 had this or not, but look in the properties window for the object (if this is a form or something like that) and there will be a lightning bolt there you can click on to see events, otherwise just create your event handler method and add "Handles Me.SomeEvent" on the end of the method definition.
我不知道Visual Studio 2002是否有这个,但是在对象的属性窗口中查看(如果这是一个表格或类似的东西),那里会有一个闪电,你可以点击查看事件,否则只需创建事件处理程序方法并在方法定义的末尾添加“Handles Me.SomeEvent”。
#1
This article covers pretty much everything about VB.Net 1.1 events
本文几乎涵盖了VB.Net 1.1事件的所有内容
#2
I don't know if Visual Studio 2002 had this or not, but look in the properties window for the object (if this is a form or something like that) and there will be a lightning bolt there you can click on to see events, otherwise just create your event handler method and add "Handles Me.SomeEvent" on the end of the method definition.
我不知道Visual Studio 2002是否有这个,但是在对象的属性窗口中查看(如果这是一个表格或类似的东西),那里会有一个闪电,你可以点击查看事件,否则只需创建事件处理程序方法并在方法定义的末尾添加“Handles Me.SomeEvent”。