Click here to Skip to main content
15,887,344 members
Home / Discussions / C#
   

C#

 
AnswerRe: FileUpload Component question. Pin
Pete O'Hanlon28-Apr-11 21:00
mvePete O'Hanlon28-Apr-11 21:00 
AnswerRe: FileUpload Component question. Pin
dbongs28-Apr-11 21:54
dbongs28-Apr-11 21:54 
QuestionHow to print a file (word doc, pdf or infopath form) from a URL using code? Pin
bin_bin128-Apr-11 19:21
bin_bin128-Apr-11 19:21 
AnswerRe: How to print a file (word doc, pdf or infopath form) from a URL using code? Pin
_Erik_29-Apr-11 3:41
_Erik_29-Apr-11 3:41 
QuestionListing information of backgroud process Pin
sarang_k28-Apr-11 19:01
sarang_k28-Apr-11 19:01 
AnswerRe: Listing information of backgroud process Pin
CodingLover28-Apr-11 19:23
CodingLover28-Apr-11 19:23 
AnswerRe: Listing information of backgroud process Pin
ambarishtv29-Apr-11 23:05
ambarishtv29-Apr-11 23:05 
QuestionMinimizing to system tray causes stack overflow Pin
Helfdane28-Apr-11 12:52
Helfdane28-Apr-11 12:52 
Hi,

I have a vewwy simple app which just sits in the system tray while doing its work. When a user double clicks the notification icon, a config window opens and you can edit some settings there. Right now, I have a simple form which will be hidden from the user and show a notification icon when formstate is set to minimized.

private void TrayForm_Resize(object sender, EventArgs e)
{
    if (FormWindowState.Minimized == this.WindowState)
    {
        notifyIcon1.Visible = true;
        this.Hide();
        //this.ShowInTaskbar = false;
    }
    else if (FormWindowState.Normal == this.WindowState)
    {
        notifyIcon1.Visible = false;
    }
}


For some reason, this works under windows xp, in windows7 I have to disable the ShowInTaskbar call, as that causes a stack overflow in the current thread. If I don't use the call, the form is minimized and remains visible on the taskbar, annoying at best.

Any workarounds? (or am I doing something stupid here...?)
A good programmer is someone who always looks both ways before crossing a one-way street. (Doug Linder)

AnswerRe: Minimizing to system tray causes stack overflow Pin
Luc Pattyn28-Apr-11 13:01
sitebuilderLuc Pattyn28-Apr-11 13:01 
GeneralRe: Minimizing to system tray causes stack overflow Pin
Helfdane29-Apr-11 8:35
Helfdane29-Apr-11 8:35 
QuestionGradient Texture with Transparency Pin
BoneSoft28-Apr-11 3:54
BoneSoft28-Apr-11 3:54 
AnswerRe: Gradient Texture with Transparency Pin
BoneSoft28-Apr-11 9:02
BoneSoft28-Apr-11 9:02 
AnswerRe: Gradient Texture with Transparency Pin
Manfred Rudolf Bihy28-Apr-11 12:30
professionalManfred Rudolf Bihy28-Apr-11 12:30 
GeneralRe: Gradient Texture with Transparency Pin
BoneSoft28-Apr-11 16:04
BoneSoft28-Apr-11 16:04 
QuestionHow to list network connections Pin
sarang_k28-Apr-11 0:31
sarang_k28-Apr-11 0:31 
AnswerRe: How to list network connections Pin
Blue_Boy28-Apr-11 3:25
Blue_Boy28-Apr-11 3:25 
GeneralRe: How to list network connections Pin
ambarishtv28-Apr-11 5:16
ambarishtv28-Apr-11 5:16 
AnswerRe: How to list network connections Pin
RaviRanjanKr29-Apr-11 9:03
professionalRaviRanjanKr29-Apr-11 9:03 
QuestionDataset selection question Pin
minnie mouse27-Apr-11 23:34
minnie mouse27-Apr-11 23:34 
AnswerRe: Dataset selection question Pin
Eddy Vluggen28-Apr-11 0:06
professionalEddy Vluggen28-Apr-11 0:06 
GeneralRe: Dataset selection question Pin
minnie mouse28-Apr-11 0:51
minnie mouse28-Apr-11 0:51 
AnswerRe: Dataset selection question Pin
wizardzz28-Apr-11 5:54
wizardzz28-Apr-11 5:54 
GeneralRe: Dataset selection question Pin
minnie mouse28-Apr-11 10:04
minnie mouse28-Apr-11 10:04 
QuestionHow to use c++ dll in c#.net Pin
sarang_k27-Apr-11 23:02
sarang_k27-Apr-11 23:02 
AnswerRe: How to use c++ dll in c#.net Pin
Pete O'Hanlon27-Apr-11 23:31
mvePete O'Hanlon27-Apr-11 23:31 

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.