VB.NET Tutorial - Create and Handle Custom Events (Visual Basic .NET)

preview_player
Показать описание
In this VB.NET tutorial I will teach you how to create custom events and handle them using RaiseEvent and AddHandler. We will explore a few different methods of event handling, both from the main form and directly from within a custom class object.

Tutorial Features:
Events - Custom Events, RaiseEvent, AddHandler
Class - Create a new Class and define its properties, methods, and events

Рекомендации по теме
Комментарии
Автор

10 years old and still useful, thanks a lot

michael-buch_dk
Автор

Well done, but to update your knowledge: You actually can write a usual sub or function as a lambda expression as you would do with a regular one - just like you did it with the MySub variable, but you don't need a extra var for this, tl;dr; the following code works fine:

AddHandler ColorChanged, Sub()
MsgBox(_color.ToString)
Draw()
End Sub

SpReeDateD
Автор

I've watched ur videos for a long time and I just love your efforts! keep up

MsCounterTerrorist
Автор

When you click on textchanges drop down arrow key down option you choose but my keydown option is not coming what can I do...can anyone solve my problem

prabha
Автор

could you help me? do you know how to put data and time in database with automatic??

saudarellano
Автор

what about Events Like KeyDown or KeyUp ?? , Those Events not work with my DLL Class Component !!!!

serajfakron
Автор

I can understand you perfectly! Thanks!

PlayNRip
Автор

may i request some videos of creating report with crystal report??

fajrimitnick
Автор

Thanks a lot .. you are awesome (Y)
keep going :)

omarrandoms
Автор

what keyboard do you have? sounds like my dads typewriter from 1984.

AW_
Автор

Should I learn C-Sharp or VB.NET for making Windows form desktop applications? 

trollerjesus
Автор

how to do travelling salesman problem in vb.net

careerfirst
Автор

Perfect Dude! But if you want keep it simple put a property you have to type only proper and hit tab! Thats all!

brazo
Автор

Newb question, don't you usually need Dim to declare variables?

momashi
Автор

hi i love u for your work do u have any other youtube channel?

yba
visit shbcf.ru