VB.NET Tutorial - Create and Handle Custom Events (Visual Basic .NET)
Вставка
- Опубліковано 27 сер 2024
- 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
Tip Jar: www.aardaerimus...
I've watched ur videos for a long time and I just love your efforts! keep up
Ace Turtle Awesome! Thank you, Ace Turtle. :-D
I guess Im quite randomly asking but do anyone know a good website to stream new series online ?
@Damian Karsyn Try FlixZone. Just search on google for it :)
@Merrick Cody yea, been using FlixZone for years myself =)
@Merrick Cody Thanks, signed up and it seems to work :D I really appreciate it !!
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
I can understand you perfectly! Thanks!
Again a very nice tutorial.
what keyboard do you have? sounds like my dads typewriter from 1984.
Very old Dell AT101W. ;-D Freakin' loves me some old clickity keyboards. lol
clickykeyboards.com/
Awesome ! just what I needed thanks
Great tutorial, thanks!!
Thanks a lot .. you are awesome (Y)
keep going :)
what about Events Like KeyDown or KeyUp ?? , Those Events not work with my DLL Class Component !!!!
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
Should I learn C-Sharp or VB.NET for making Windows form desktop applications?
That's really a matter of preference. Under the hood, C# and VB.NET are identical. They're based upon the same framework. What it comes down to is your syntax preference (mine is VB) and what your goals are.
If you're looking to make a career of programming, I think that C# offers more job potential due to the fact that the majority of career programmers come from a C/C++ background, so the syntax is more familiar to them.
Personally, I feel that VB.NET syntax feels more intuitive and I really like the Intellisense as it helps reduce code "guessing". I feel that I can produce Windows Forms Applications much more quickly in VB.
thats pretty slick :D
Полезное видео! Спасибо!
Nice tutorial !
could you help me? do you know how to put data and time in database with automatic??
Newb question, don't you usually need Dim to declare variables?
thebunnyrules Unless you're using access levels (Public, Private, etc.), which I generally do at the class level, you'll use Dim to declare variables. :-) It's short for Dimension, as it carves out and allocates a chunk of memory to hold the object or data type.
Perfect Dude! But if you want keep it simple put a property you have to type only proper and hit tab! Thats all!
how to do travelling salesman problem in vb.net
may i request some videos of creating report with crystal report??
great
thank you so much
huge thank you :)
Very welcome, Esraa. :-)
Thank you for coming by.
hi i love u for your work do u have any other youtube channel?
+ryugami yagami Thank you, ryugami yagami! :-) My other channel is "Aardaerimus" and was mostly dedicated to game programming in VB, but I haven't updated it in a very long time so the videos are not great.
VB Toolbox ty i already know about it i was asking if u have more , or can u do a video about app conception with MERISE methodology , ty again for everything!
+VB Toolbox my events menu is not viseble how can i get acces to it now