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

C#

 
GeneralRe: how can I retrieve the start menu folder and desktop folder in windows vista using c#? Pin
dan!sh 30-Oct-09 2:28
professional dan!sh 30-Oct-09 2:28 
GeneralRe: how can I retrieve the start menu folder and desktop folder in windows vista using c#? Pin
deftsoft30-Oct-09 2:42
deftsoft30-Oct-09 2:42 
GeneralRe: how can I retrieve the start menu folder and desktop folder in windows vista using c#? Pin
Covean30-Oct-09 2:33
Covean30-Oct-09 2:33 
GeneralRe: how can I retrieve the start menu folder and desktop folder in windows vista using c#? Pin
deftsoft30-Oct-09 2:43
deftsoft30-Oct-09 2:43 
GeneralRe: how can I retrieve the start menu folder and desktop folder in windows vista using c#? Pin
Covean30-Oct-09 3:10
Covean30-Oct-09 3:10 
GeneralRe: how can I retrieve the start menu folder and desktop folder in windows vista using c#? Pin
Dave Kreskowiak30-Oct-09 3:58
mveDave Kreskowiak30-Oct-09 3:58 
QuestionHow to change the button color on its click and then restore it when you click on other button? Pin
Swapnil 200929-Oct-09 23:16
Swapnil 200929-Oct-09 23:16 
AnswerRe: How to change the button color on its click and then restore it when you click on other button? Pin
SeMartens29-Oct-09 23:42
SeMartens29-Oct-09 23:42 
Hi,

write a method to which you pass the button clicked. Call this method from each eventhandler (for a button click).

The method should look like this:

private void SetButtonColor(object sender) {

   this.Button_headers.BackColor = (sender.Equals(this.Button_headers) ? Color.Blue : Color.White);
   this.MySecondButton.BackColor = (sender.Equals(this.MySecondButton) ? Color.Blue : Color.White);
   ...
}


Let me know if this helps you.

Regards
Sebastian

It's not a bug, it's a feature!

Check out my CodeProject article Permission-by-aspect.

Me in Softwareland.

GeneralRe: How to change the button color on its click and then restore it when you click on other button? Pin
Swapnil 200929-Oct-09 23:57
Swapnil 200929-Oct-09 23:57 
AnswerRe: How to change the button color on its click and then restore it when you click on other button? Pin
freakyit30-Oct-09 0:16
freakyit30-Oct-09 0:16 
QuestionDesktop Switching "Secure Mode" Pin
Naruki29-Oct-09 22:58
Naruki29-Oct-09 22:58 
AnswerRe: Desktop Switching "Secure Mode" Pin
Eddy Vluggen30-Oct-09 0:37
professionalEddy Vluggen30-Oct-09 0:37 
GeneralRe: Desktop Switching "Secure Mode" Pin
Naruki30-Oct-09 3:12
Naruki30-Oct-09 3:12 
GeneralRe: Desktop Switching "Secure Mode" Pin
Naruki8-Nov-09 22:21
Naruki8-Nov-09 22:21 
QuestionVisual Studio 2008 Pro edition Pin
VS newbie 29-Oct-09 21:12
VS newbie 29-Oct-09 21:12 
AnswerRe: Visual Studio 2008 Pro edition Pin
SeMartens29-Oct-09 23:37
SeMartens29-Oct-09 23:37 
Questionco-relating C#, GPS and NXT Pin
melvin199029-Oct-09 20:15
melvin199029-Oct-09 20:15 
Questionabout database Pin
miss YY29-Oct-09 19:00
miss YY29-Oct-09 19:00 
AnswerRe: about database Pin
miss YY29-Oct-09 19:07
miss YY29-Oct-09 19:07 
GeneralRe: about database Pin
padmanabhan N29-Oct-09 19:57
padmanabhan N29-Oct-09 19:57 
GeneralRe: about database Pin
Christian Graus29-Oct-09 20:57
protectorChristian Graus29-Oct-09 20:57 
GeneralRe: about database Pin
miss YY1-Nov-09 20:40
miss YY1-Nov-09 20:40 
Questionabout tree view Pin
miss YY29-Oct-09 18:35
miss YY29-Oct-09 18:35 
AnswerRe: about tree view Pin
Christian Graus29-Oct-09 18:45
protectorChristian Graus29-Oct-09 18:45 
GeneralRe: about tree view Pin
vivasaayi29-Oct-09 19:09
vivasaayi29-Oct-09 19:09 

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.