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...

КОМЕНТАРІ • 38

  • @MsCounterTerrorist
    @MsCounterTerrorist 9 років тому +1

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

    • @VBToolbox
      @VBToolbox  9 років тому

      Ace Turtle Awesome! Thank you, Ace Turtle. :-D

    • @damiankarsyn9653
      @damiankarsyn9653 3 роки тому

      I guess Im quite randomly asking but do anyone know a good website to stream new series online ?

    • @merrickcody1692
      @merrickcody1692 3 роки тому

      @Damian Karsyn Try FlixZone. Just search on google for it :)

    • @rockybrennan7152
      @rockybrennan7152 3 роки тому

      @Merrick Cody yea, been using FlixZone for years myself =)

    • @damiankarsyn9653
      @damiankarsyn9653 3 роки тому

      @Merrick Cody Thanks, signed up and it seems to work :D I really appreciate it !!

  • @SpReeDateD
    @SpReeDateD 4 роки тому +1

    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

  • @PlayNRip
    @PlayNRip 9 років тому

    I can understand you perfectly! Thanks!

  • @dickvanderschaaf3833
    @dickvanderschaaf3833 5 років тому

    Again a very nice tutorial.

  • @AW_77
    @AW_77 7 років тому +2

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

    • @VBToolbox
      @VBToolbox  7 років тому +1

      Very old Dell AT101W. ;-D Freakin' loves me some old clickity keyboards. lol
      clickykeyboards.com/

  • @noijze
    @noijze 7 років тому

    Awesome ! just what I needed thanks

  • @bradpeone7139
    @bradpeone7139 4 роки тому

    Great tutorial, thanks!!

  • @omarrandoms8554
    @omarrandoms8554 10 років тому +2

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

  • @serajfakron1475
    @serajfakron1475 7 років тому

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

  • @prabha7976
    @prabha7976 3 роки тому

    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

  • @troller4jesus
    @troller4jesus 10 років тому

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

    • @VBToolbox
      @VBToolbox  10 років тому

      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.

  • @svens3722
    @svens3722 3 роки тому +1

    thats pretty slick :D

  • @Mickey6X6
    @Mickey6X6 6 років тому

    Полезное видео! Спасибо!

  • @ifelseprog
    @ifelseprog 9 років тому

    Nice tutorial !

  • @saudarellano5659
    @saudarellano5659 7 років тому

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

  • @momashi69
    @momashi69 7 років тому

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

    • @VBToolbox
      @VBToolbox  7 років тому

      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.

  • @brazo98
    @brazo98 5 років тому

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

  • @careerfirst1654
    @careerfirst1654 6 років тому

    how to do travelling salesman problem in vb.net

  • @fajrimitnick3552
    @fajrimitnick3552 10 років тому

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

  • @hemendrapadia7709
    @hemendrapadia7709 Рік тому

    great

  • @mohammadit33
    @mohammadit33 8 років тому

    thank you so much

  • @EsraaAlbarqat
    @EsraaAlbarqat 9 років тому

    huge thank you :)

    • @VBToolbox
      @VBToolbox  9 років тому +1

      Very welcome, Esraa. :-)
      Thank you for coming by.

  • @yba3798
    @yba3798 8 років тому

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

    • @VBToolbox
      @VBToolbox  8 років тому

      +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.

    • @yba3798
      @yba3798 8 років тому

      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!

    • @weshuiz1325
      @weshuiz1325 8 років тому

      +VB Toolbox my events menu is not viseble how can i get acces to it now