Click here to Skip to main content
15,891,873 members
Home / Discussions / C#
   

C#

 
GeneralRe: focus on next control in a WinForm Pin
Stanciu Vlad17-Aug-04 7:02
Stanciu Vlad17-Aug-04 7:02 
GeneralWeb custom control complie in vb.net Pin
patrick.hatung17-Aug-04 1:56
patrick.hatung17-Aug-04 1:56 
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 
Hy everyone!

I want to change the icon of my WindowsForms Window and my notifyicon depending on the system state meaning, if the apllication is able to do a special kind of work then the icon is style A, if it fails then it changes to style B. If the user tries again and this time it works then the icon changes back to style A.

In general:
application works correctly => icon A
application fails => icon B
application works correctly (after having failed before) => icon changes from B to A.

Well how do I realize this in my application? I know there is something like notify.Icon but there it says for example
this.tbiNameKeyService.Icon = ((System.Drawing.Icon)(resources.GetObject("tbiNameKeyService.Icon")));

at the moment I have no idea
1) where the application chooses to use my icon I assigned in the properties
2) how to change/switch the icon depending on the state (ok/failure) because of 1)

I mean I could have tried to use an absolute link to the file but then my application is fixed to this configuration. But I want it not to be absolute! Meaning I do want to being able to "port" it to another computer.

Thanks!

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

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.