Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Events Calling

Events Calling

Scheduled Pinned Locked Moved Visual Basic
questioncsharp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    microuser_2000
    wrote on last edited by
    #1

    hellow to all ... how can i call Events in vb.net ? i wanna call the painting event of a picturebox every time i click a button , to redraw something ... thx for anyhelp ...

    _ 1 Reply Last reply
    0
    • M microuser_2000

      hellow to all ... how can i call Events in vb.net ? i wanna call the painting event of a picturebox every time i click a button , to redraw something ... thx for anyhelp ...

      _ Offline
      _ Offline
      _Chosen
      wrote on last edited by
      #2

      You dim the picture box adding the 'withevents' keyword. You create the event eg public event eventname You add 'handles ButtonName_Click' to the event you created, this will tell vb that when you click that button, it must run this event.

      There are 10 types of people in this world, those who understand binary and those who don't!

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups