Click here to Skip to main content
15,903,201 members
Home / Discussions / C#
   

C#

 
GeneralRe: NotifyIcon does not respond Pin
Luc Pattyn11-Feb-08 10:52
sitebuilderLuc Pattyn11-Feb-08 10:52 
GeneralRe: NotifyIcon does not respond Pin
danielhasdibs11-Feb-08 11:04
danielhasdibs11-Feb-08 11:04 
GeneralRe: NotifyIcon does not respond Pin
DaveyM6911-Feb-08 12:02
professionalDaveyM6911-Feb-08 12:02 
QuestionRe: NotifyIcon does not respond Pin
danielhasdibs12-Feb-08 2:11
danielhasdibs12-Feb-08 2:11 
QuestionRe: NotifyIcon does not respond Pin
danielhasdibs12-Feb-08 2:57
danielhasdibs12-Feb-08 2:57 
GeneralRe: NotifyIcon does not respond Pin
Aurelius166412-Feb-08 3:13
Aurelius166412-Feb-08 3:13 
QuestionRe: NotifyIcon does not respond Pin
danielhasdibs12-Feb-08 5:14
danielhasdibs12-Feb-08 5:14 
GeneralRe: NotifyIcon does not respond Pin
DaveyM6912-Feb-08 5:53
professionalDaveyM6912-Feb-08 5:53 
public partial class MainFrm : Form
    {
        Timer MyReminder = new Timer();

        public MainFrm()
        { 
            InitializeComponent();
            btnOK.Click += new EventHandler(btnOK_Click);
            Resize += new EventHandler(MainFrm_Resize);
            TB_Icon.Icon = Icon;
            TB_Icon.MouseDoubleClick += new MouseEventHandler(TB_Icon_MouseDoubleClick);
            ContMenuStrip.Click += new EventHandler(ContMenuStrip_Click);
            MyReminder.Interval = 2000; // 2 seconds
            MyReminder.Tick += new EventHandler(MyReminder_Tick);
        }

        void MyReminder_Tick(object sender, EventArgs e)
        {
            // Reminder stuff goes here
            Console.WriteLine("You have been reminded at " + DateTime.Now); 
        } 
        void btnOK_Click(object sender, EventArgs e)
        { 
            WindowState = FormWindowState.Minimized;
        } 
        void MainFrm_Resize(object sender, EventArgs e)
        {
            if (WindowState == FormWindowState.Minimized)
            {
                Hide();
                MyReminder.Start();
            }
            else
            {
                MyReminder.Stop();
            }
        } 
        void TB_Icon_MouseDoubleClick(object sender, MouseEventArgs e)
        { 
            Show();
            WindowState = FormWindowState.Normal;
        } 
        void ContMenuStrip_Click(object sender, EventArgs e) 
        { 
            Show(); 
            WindowState = FormWindowState.Normal;
        } 
    }


Dave

AnswerNotifyIcon does not respond (solution) Pin
danielhasdibs12-Feb-08 6:11
danielhasdibs12-Feb-08 6:11 
GeneralDistributed Computing Pin
Christopher Stratmann11-Feb-08 3:43
Christopher Stratmann11-Feb-08 3:43 
GeneralRe: Distributed Computing Pin
Expert Coming11-Feb-08 4:29
Expert Coming11-Feb-08 4:29 
GeneralRe: Distributed Computing Pin
led mike11-Feb-08 4:52
led mike11-Feb-08 4:52 
GeneralRe: Distributed Computing Pin
Christopher Stratmann11-Feb-08 5:20
Christopher Stratmann11-Feb-08 5:20 
GeneralRe: Distributed Computing Pin
led mike11-Feb-08 5:43
led mike11-Feb-08 5:43 
GeneralRe: Distributed Computing Pin
Christopher Stratmann11-Feb-08 6:41
Christopher Stratmann11-Feb-08 6:41 
GeneralRe: Distributed Computing Pin
led mike11-Feb-08 6:51
led mike11-Feb-08 6:51 
GeneralRe: Distributed Computing Pin
Dan Neely11-Feb-08 9:04
Dan Neely11-Feb-08 9:04 
GeneralRe: Distributed Computing Pin
emiaj11-Feb-08 6:58
emiaj11-Feb-08 6:58 
GeneralAdd Blank Line to dropdownlist Pin
minniemooo11-Feb-08 2:33
minniemooo11-Feb-08 2:33 
GeneralRe: Add Blank Line to dropdownlist Pin
Mark Churchill11-Feb-08 2:44
Mark Churchill11-Feb-08 2:44 
GeneralRe: Add Blank Line to dropdownlist Pin
Ravenet11-Feb-08 2:45
Ravenet11-Feb-08 2:45 
QuestionHow to Make the Text Bold ?? Pin
Hum Dum11-Feb-08 1:31
Hum Dum11-Feb-08 1:31 
AnswerRe: How to Make the Text Bold ?? Pin
Pete O'Hanlon11-Feb-08 2:05
mvePete O'Hanlon11-Feb-08 2:05 
GeneralRe: How to Make the Text Bold ?? Pin
Ravenet11-Feb-08 2:52
Ravenet11-Feb-08 2:52 
GeneralRe: How to Make the Text Bold ?? Pin
phannon8611-Feb-08 3:07
professionalphannon8611-Feb-08 3:07 

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.