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. C#
  4. triggers

triggers

Scheduled Pinned Locked Moved C#
csharpdatabase
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.
  • W Offline
    W Offline
    waheed awan
    wrote on last edited by
    #1

    is it possible to call a C# code functio from the trigger.....

    K 1 Reply Last reply
    0
    • W waheed awan

      is it possible to call a C# code functio from the trigger.....

      K Offline
      K Offline
      Kristian Sixhoj
      wrote on last edited by
      #2

      waheed awan wrote:

      trigger.....

      Do you mean event handler? If I have understood your question, you're asking if it is possible to call a method from an event handler, right? Well, the answer is yes. You just type the name of the method within the event handler, then it will be called every time that event is triggered.

      private void timer1_Tick(object sender, EventArgs e)
      {
      SomeMethod();
      }

      Kristian Sixhoej


      "Failure is not an option" - Gene Kranz

      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