Results 1 to 2 of 2
  1. #1

    Default How to De-Initialize C# program on log-off


    How can I de-initialize a program on system logoff using c#?

  2. #2
    add namespace "using Microsoft.Win32"

    sa form load add the event:
    SystemEvents.SessionEnding += new SessionEndingEventHandler(LogOffFunction);

    c LogOfffunction ang mo handle sa de-initialization.

    LogOffFunction(object x, sessionEndingEventHandler y)
    {
    //perform de-initialization.
    }

    if windows service ni xa kay naa pa lain paagi.
    so mao pa ni ako na try.

    if naa pa mo lain idea share pd
    Last edited by Artoy; 11-01-2009 at 05:18 PM. Reason: syntax error

  3.    Advertisement

Similar Threads

 
  1. How to connect internet via Bluetooth on WM6?
    By viking in forum Gizmos & Gadgets (Old)
    Replies: 3
    Last Post: 01-12-2008, 03:37 PM
  2. how to play GBA or SNES ON UR PSP???
    By preloader in forum Gizmos & Gadgets (Old)
    Replies: 1
    Last Post: 11-30-2007, 10:51 PM
  3. how to disable ctrl-alt-del on your WIN XP PRO
    By leatherman in forum Computer Hardware
    Replies: 14
    Last Post: 11-09-2007, 07:09 PM
  4. ned help abt sa program on log in and out sa cafe......
    By blossom1021 in forum Programming
    Replies: 3
    Last Post: 10-18-2006, 07:17 PM
  5. How to enable (globe) mms setting on my P910i
    By etgo in forum Gizmos & Gadgets (Old)
    Replies: 2
    Last Post: 12-26-2005, 03:59 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top