Click here to Skip to main content
15,890,385 members
Home / Discussions / C#
   

C#

 
GeneralRe: Web custom control complie in vb.net Pin
Nick Parker17-Aug-04 3:17
protectorNick Parker17-Aug-04 3:17 
Generalembedded database Pin
khchan17-Aug-04 1:48
khchan17-Aug-04 1:48 
GeneralRe: embedded database Pin
yetanotherchris17-Aug-04 5:18
yetanotherchris17-Aug-04 5:18 
GeneralRe: embedded database Pin
Steve Maier17-Aug-04 7:31
professionalSteve Maier17-Aug-04 7:31 
GeneralRe: embedded database Pin
leppie17-Aug-04 8:21
leppie17-Aug-04 8:21 
Questionhow to change icons Pin
Stephan Wright17-Aug-04 1:15
Stephan Wright17-Aug-04 1:15 
AnswerRe: how to change icons Pin
Nick Parker17-Aug-04 3:09
protectorNick Parker17-Aug-04 3:09 
GeneralRe: how to change icons Pin
Stephan Wright17-Aug-04 3:33
Stephan Wright17-Aug-04 3:33 
if you mean the following by "query the status of my application" then you are right:

it should do the following

try
{
//do something
//displayed icon is ok icon
set ok icon
}
catch
{
// catch error
// displayed icon is failed icon
set failed icon
}

above is an example for what I want to do.
Well this means I would have to "switch" the icon (see pseudocode above).
Well change the icon? uhm, that's what I do not know how to do! Could you please post a sample how to do this or post a reference where it is described how to do so.
I do know how to set the icon by
notify1.Icon=new Icon("myicon.ico");
but what do I have to do in the example above?
At the moment I added
notify1.Icon=new Icon("myokicon.ico");
to the try section and
notify1.Icon=new Icon("myfailicon.ico");
to the catch section.

Well the first time it works, but when I do want to do the next switch then it crashes.

Meaning I am only able to do
notify1.Icon=new Icon("myicon.ico";
once and never again.
But what do I have to do to change this as often as I want it to change?
So once again I would ask you to please let me know of a sample how to manage this problem or a link to a reference which describes how to manage this.

Thanks!
Stephan.
GeneralRe: how to change icons Pin
Stephan Wright17-Aug-04 4:04
Stephan Wright17-Aug-04 4:04 
GeneralRe: how to change icons Pin
Stephan Wright17-Aug-04 9:02
Stephan Wright17-Aug-04 9:02 
GeneralProblem verifying certificates Pin
Escroto17-Aug-04 1:12
Escroto17-Aug-04 1:12 
GeneralActive Directory Pin
Member 130283917-Aug-04 1:05
Member 130283917-Aug-04 1:05 
GeneralRe: Active Directory Pin
Dave Kreskowiak17-Aug-04 5:16
mveDave Kreskowiak17-Aug-04 5:16 
GeneralPopup Message in web Pin
dabuskol16-Aug-04 22:12
dabuskol16-Aug-04 22:12 
GeneralRe: Popup Message in web Pin
Valeria Bogdevich17-Aug-04 2:59
Valeria Bogdevich17-Aug-04 2:59 
GeneralRe: Popup Message in web Pin
Steve Maier17-Aug-04 7:37
professionalSteve Maier17-Aug-04 7:37 
GeneralRe: Popup Message in web Pin
dabuskol17-Aug-04 19:14
dabuskol17-Aug-04 19:14 
GeneralRe: Popup Message in web Pin
Steve Maier18-Aug-04 1:58
professionalSteve Maier18-Aug-04 1:58 
GeneralRe: Popup Message in web Pin
dabuskol18-Aug-04 2:12
dabuskol18-Aug-04 2:12 
GeneralUser32 API Window List Pin
Robin Day16-Aug-04 22:03
Robin Day16-Aug-04 22:03 
GeneralRe: User32 API Window List Pin
yetanotherchris17-Aug-04 5:25
yetanotherchris17-Aug-04 5:25 
GeneralSimple XML browser Pin
clatten16-Aug-04 21:12
clatten16-Aug-04 21:12 
GeneralRe: Simple XML browser Pin
Nick Parker17-Aug-04 3:23
protectorNick Parker17-Aug-04 3:23 
GeneralRe: Simple XML browser Pin
clatten17-Aug-04 4:10
clatten17-Aug-04 4:10 
GeneralADOCE for C# Pin
Stastlivec16-Aug-04 20:31
Stastlivec16-Aug-04 20: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.