Click here to Skip to main content
15,913,685 members
Home / Discussions / C#
   

C#

 
GeneralASP.NET C# Mifare Reader Web System Pin
Tyrone Boon11-Feb-08 5:55
Tyrone Boon11-Feb-08 5:55 
GeneralRe: ASP.NET C# Mifare Reader Web System Pin
led mike11-Feb-08 6:13
led mike11-Feb-08 6:13 
GeneralRe: ASP.NET C# Mifare Reader Web System Pin
Steve Westbrook11-Feb-08 6:54
Steve Westbrook11-Feb-08 6:54 
GeneralRe: ASP.NET C# Mifare Reader Web System Pin
Tyrone Boon12-Feb-08 5:35
Tyrone Boon12-Feb-08 5:35 
QuestionNotifyIcon does not respond Pin
danielhasdibs11-Feb-08 3:55
danielhasdibs11-Feb-08 3:55 
GeneralRe: NotifyIcon does not respond Pin
DaveyM6911-Feb-08 4:16
professionalDaveyM6911-Feb-08 4:16 
GeneralRe: NotifyIcon does not respond Pin
danielhasdibs11-Feb-08 4:32
danielhasdibs11-Feb-08 4:32 
GeneralRe: NotifyIcon does not respond Pin
DaveyM6911-Feb-08 5:06
professionalDaveyM6911-Feb-08 5:06 
This is working for me.
(Added button[btnOK], notifyIcon[TB_Icon], contextMenuStrip[ContMenuStrip] and a toolStripMenuItem to ContMenuStrip with TB_Icon's ContextMenuStrip property set to ContMenuStrip)
public partial class MainFrm : Form
    {
        public MainFrm()
        {
            InitializeComponent();
            btnOK.Click += new EventHandler(btnOK_Click); Resize += new EventHandler(MainFrm_Resize);
            TB_Icon.MouseDoubleClick += new MouseEventHandler(TB_Icon_MouseDoubleClick);
            ContMenuStrip.Click += new EventHandler(ContMenuStrip_Click);
        }

        void btnOK_Click(object sender, EventArgs e)
        {
            WindowState = FormWindowState.Minimized;
        }

        void MainFrm_Resize(object sender, EventArgs e)
        {
            if (WindowState == FormWindowState.Minimized)
                Hide();
        }

        void TB_Icon_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            Show();
            WindowState = FormWindowState.Normal;
        }

        void ContMenuStrip_Click(object sender, EventArgs e)
        {
            Show();
            WindowState = FormWindowState.Normal;
        }
    }


Dave

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 
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 

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.