Click here to Skip to main content
15,926,144 members
Home / Discussions / C#
   

C#

 
GeneralRe: Request is not available in this context Pin
Steve Westbrook12-Feb-08 16:07
Steve Westbrook12-Feb-08 16:07 
GeneralRe: Request is not available in this context Pin
blakey40411-Feb-08 22:29
blakey40411-Feb-08 22:29 
QuestionCell/Row DoubleClick event for DataGrid Pin
t4ure4n11-Feb-08 6:05
t4ure4n11-Feb-08 6:05 
GeneralRe: Cell/Row DoubleClick event for DataGrid Pin
Not Active11-Feb-08 6:21
mentorNot Active11-Feb-08 6:21 
GeneralRe: Cell/Row DoubleClick event for DataGrid Pin
t4ure4n11-Feb-08 6:31
t4ure4n11-Feb-08 6:31 
GeneralRe: Cell/Row DoubleClick event for DataGrid Pin
Not Active11-Feb-08 6:48
mentorNot Active11-Feb-08 6:48 
GeneralBeginner Sql query question Pin
NewToAspDotNet11-Feb-08 6:00
NewToAspDotNet11-Feb-08 6:00 
GeneralRe: Beginner Sql query question Pin
Not Active11-Feb-08 6:09
mentorNot Active11-Feb-08 6:09 
GeneralRe: Beginner Sql query question [modified] Pin
Giorgi Dalakishvili11-Feb-08 6:21
mentorGiorgi Dalakishvili11-Feb-08 6:21 
GeneralRe: Beginner Sql query question Pin
Not Active11-Feb-08 6:25
mentorNot Active11-Feb-08 6:25 
GeneralRe: Beginner Sql query question Pin
Giorgi Dalakishvili11-Feb-08 6:50
mentorGiorgi Dalakishvili11-Feb-08 6:50 
GeneralRe: Beginner Sql query question Pin
Gareth H11-Feb-08 8:11
Gareth H11-Feb-08 8:11 
GeneralRe: Beginner Sql query question Pin
Giorgi Dalakishvili11-Feb-08 8:39
mentorGiorgi Dalakishvili11-Feb-08 8:39 
GeneralRe: Beginner Sql query question Pin
Gareth H11-Feb-08 8:42
Gareth H11-Feb-08 8:42 
GeneralRe: Beginner Sql query question Pin
Giorgi Dalakishvili11-Feb-08 8:56
mentorGiorgi Dalakishvili11-Feb-08 8:56 
GeneralRe: Beginner Sql query question Pin
Steve Westbrook11-Feb-08 6:42
Steve Westbrook11-Feb-08 6:42 
Generaldeveloping a project with csharp (rookie) Pin
olutola a elemo11-Feb-08 5:56
olutola a elemo11-Feb-08 5:56 
GeneralRe: developing a project with csharp (rookie) Pin
amargujrathi200611-Feb-08 6:36
amargujrathi200611-Feb-08 6:36 
GeneralRe: developing a project with csharp (rookie) Pin
led mike11-Feb-08 8:35
led mike11-Feb-08 8:35 
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 
Ok, hopefully, this will be an easier problem to solve. I have a program that has a NotifyIcon control. When the user completes the MainFrame form, the window minimizes and then hides. I want to be able to double-click the notifyicon to make the window reappear. I also want to be able to right-click the n-icon and have my context menu strip show.

Now this works perfectly well when the window (MainFrame) is minimized, but once the user completes the MF form and the window hides, the n-icon does not respond. Here's my code:

<br />
private void MainFrm_Resize(object sender, EventArgs e)<br />
        {<br />
            if (this.WindowState == FormWindowState.Minimized)<br />
                Hide();<br />
        }<br />
...<br />
private void TB_Icon_DoubleClick(object sender, EventArgs e)<br />
        {<br />
            Show();<br />
            WindowState = FormWindowState.Normal;<br />
        }<br />
...<br />
private void TB_Icon_MouseUp(object sender, MouseEventArgs e)<br />
        {<br />
            if (e.Button == MouseButtons.Right)<br />
            {<br />
                ContMenuStrip.Show();<br />
            }<br />
        }<br />
...<br />
private void ContMenuStrip_Click(object sender, EventArgs e)<br />
        {<br />
            Show();<br />
            WindowState = FormWindowState.Normal;<br />
        }<br />
<br />
<br />


Now, keep in mind that after the user completes the MainFrame form (clicks the "OK" button), a loop is constantly running. Nothing happens when I double-click or right-click on the notifyicon. Thanks for the help.
GeneralRe: NotifyIcon does not respond Pin
DaveyM6911-Feb-08 4:16
professionalDaveyM6911-Feb-08 4:16 

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.