Click here to Skip to main content
16,016,087 members
Home / Discussions / C#
   

C#

 
QuestionIgnoring folders when unzipping with FastZip Pin
Kiefie25-May-08 23:16
Kiefie25-May-08 23:16 
QuestionNeed help to do a "online members" list to my chat Pin
Bobbz25-May-08 23:09
Bobbz25-May-08 23:09 
AnswerRe: Need help to do a "online members" list to my chat Pin
Christian Wikander25-May-08 23:30
Christian Wikander25-May-08 23:30 
QuestionCapture mouse click to get application name Pin
Burim Rama25-May-08 23:03
Burim Rama25-May-08 23:03 
AnswerRe: Capture mouse click to get application name Pin
DaveyM6925-May-08 23:07
professionalDaveyM6925-May-08 23:07 
GeneralRe: Capture mouse click to get application name Pin
Burim Rama25-May-08 23:20
Burim Rama25-May-08 23:20 
GeneralRe: Capture mouse click to get application name Pin
DaveyM6926-May-08 0:03
professionalDaveyM6926-May-08 0:03 
QuestionNotify Icon Problem for Console Application. Pin
ptr2void25-May-08 22:36
ptr2void25-May-08 22:36 
I was creating my tray icon for a console application using NotifyIcon Class adn it is working fine (it creates the icon)

However it dosent seem to run the event handlers (click events) on the icon..

Please guide me..
Here is my simple test program which dosent run the mouse events..


class Program
    {
        
        static void Main(string[] args)
        {
            Program p = new Program();
            p.MyMethod();
        }
        void MyMethod()
        {
            NotifyIcon tray = new NotifyIcon();
            tray.Icon = new Icon("MyIcon.ico");
            tray.Visible = true;
            tray.MouseClick += new MouseEventHandler(tray_MouseClick);
            tray.Click += new EventHandler(tray_Click);
            tray.DoubleClick += new EventHandler(tray_DoubleClick);
            Console.Read();
        }
public void tray_MouseClick(object sender, MouseEventArgs e)
        {
            Process.Start(@"C:\Windows\Notepad");
            Console.WriteLine("Hello World!");
        }
        public void tray_Click(object sender, EventArgs e)
        {
            Console.WriteLine("Hello World!");
        }
        public void tray_DoubleClick(object sender, EventArgs e)
        {
            Console.WriteLine("Hello World!");
        }
    } 

AnswerRe: Notify Icon Problem for Console Application. Pin
leppie25-May-08 22:37
leppie25-May-08 22:37 
GeneralRe: Notify Icon Problem for Console Application. Pin
ptr2void25-May-08 22:45
ptr2void25-May-08 22:45 
GeneralRe: Notify Icon Problem for Console Application. Pin
leppie26-May-08 3:55
leppie26-May-08 3:55 
AnswerRe: Notify Icon Problem for Console Application. Pin
Abhijit Jana25-May-08 22:54
professionalAbhijit Jana25-May-08 22:54 
GeneralRe: Notify Icon Problem for Console Application. Pin
ptr2void25-May-08 23:00
ptr2void25-May-08 23:00 
GeneralRe: Notify Icon Problem for Console Application. Pin
Abhijit Jana25-May-08 23:07
professionalAbhijit Jana25-May-08 23:07 
GeneralRe: Notify Icon Problem for Console Application. Pin
ptr2void25-May-08 23:09
ptr2void25-May-08 23:09 
GeneralRe: Notify Icon Problem for Console Application. Pin
Abhijit Jana25-May-08 23:16
professionalAbhijit Jana25-May-08 23:16 
GeneralRe: Notify Icon Problem for Console Application. Pin
Abhijit Jana25-May-08 23:21
professionalAbhijit Jana25-May-08 23:21 
GeneralRe: Notify Icon Problem for Console Application. Pin
ptr2void25-May-08 23:25
ptr2void25-May-08 23:25 
GeneralRe: Notify Icon Problem for Console Application. Pin
Abhijit Jana26-May-08 0:15
professionalAbhijit Jana26-May-08 0:15 
GeneralRe: Notify Icon Problem for Console Application. Pin
DaveyM6926-May-08 1:29
professionalDaveyM6926-May-08 1:29 
AnswerRe: Notify Icon Problem for Console Application. PinPopular
Anthony Mushrow26-May-08 5:40
professionalAnthony Mushrow26-May-08 5:40 
AnswerRe: Notify Icon Problem for Console Application. Pin
Ed.Poore26-May-08 7:10
Ed.Poore26-May-08 7:10 
GeneralRe: Notify Icon Problem for Console Application. Pin
charlieg26-May-08 17:17
charlieg26-May-08 17:17 
GeneralRe: Notify Icon Problem for Console Application. Pin
Ed.Poore26-May-08 23:35
Ed.Poore26-May-08 23:35 
Questionevent log name Pin
George_George25-May-08 22:15
George_George25-May-08 22:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.