Click here to Skip to main content
16,008,719 members
Home / Discussions / C#
   

C#

 
GeneralRe: Exception of file encryption using c# Pin
Colin Angus Mackay22-Dec-08 2:48
Colin Angus Mackay22-Dec-08 2:48 
AnswerRe: Exception of file encryption using c# Pin
Colin Angus Mackay22-Dec-08 2:46
Colin Angus Mackay22-Dec-08 2:46 
GeneralRe: Exception of file encryption using c# Pin
cat ang22-Dec-08 4:03
cat ang22-Dec-08 4:03 
Questionzedgraph Pin
hamidhakimi21-Dec-08 21:04
hamidhakimi21-Dec-08 21:04 
AnswerRe: zedgraph Pin
Garth J Lancaster21-Dec-08 22:35
professionalGarth J Lancaster21-Dec-08 22:35 
Questionhow to identify the button which is clicked Pin
prasadbuddhika21-Dec-08 20:28
prasadbuddhika21-Dec-08 20:28 
AnswerRe: how to identify the button which is clicked Pin
N a v a n e e t h21-Dec-08 20:41
N a v a n e e t h21-Dec-08 20:41 
AnswerRe: how to identify the button which is clicked Pin
Christian Graus21-Dec-08 20:51
protectorChristian Graus21-Dec-08 20:51 
To expand on Navaneeth's answer/

void MyClick(object sender, eventargs ea)
{
Button button = sender as Button;
if ( button != null) // should always be the case
{
// here you can use if (button == button1, or you can use switch(button.Name), or check the Tag property, or whatever.
}

}

The way I tend to do this is to use an enum to identify the different actions, and then stuff that into the tag property, pull that out and switch on it. This means that it's typesafe instead of switching on strings.

Christian Graus

Driven to the arms of OSX by Vista.

Questionimage processing Pin
komathyc21-Dec-08 20:21
komathyc21-Dec-08 20:21 
AnswerRe: image processing Pin
Christian Graus21-Dec-08 20:51
protectorChristian Graus21-Dec-08 20:51 
QuestionServer path from DLL Pin
yesu prakash21-Dec-08 20:03
yesu prakash21-Dec-08 20:03 
AnswerRe: Server path from DLL Pin
Christian Graus21-Dec-08 20:05
protectorChristian Graus21-Dec-08 20:05 
GeneralRe: Server path from DLL Pin
yesu prakash21-Dec-08 20:23
yesu prakash21-Dec-08 20:23 
GeneralRe: Server path from DLL Pin
Vimalsoft(Pty) Ltd21-Dec-08 20:29
professionalVimalsoft(Pty) Ltd21-Dec-08 20:29 
GeneralRe: Server path from DLL Pin
yesu prakash21-Dec-08 20:47
yesu prakash21-Dec-08 20:47 
GeneralRe: Server path from DLL Pin
Vimalsoft(Pty) Ltd21-Dec-08 21:23
professionalVimalsoft(Pty) Ltd21-Dec-08 21:23 
GeneralRe: Server path from DLL Pin
Christian Graus21-Dec-08 20:52
protectorChristian Graus21-Dec-08 20:52 
GeneralRe: Server path from DLL Pin
yesu prakash21-Dec-08 21:22
yesu prakash21-Dec-08 21:22 
GeneralRe: Server path from DLL Pin
Christian Graus21-Dec-08 22:41
protectorChristian Graus21-Dec-08 22:41 
QuestionReading a DLL information Pin
TJS4u21-Dec-08 19:59
TJS4u21-Dec-08 19:59 
QuestionProblem Regarding Dataset Pin
ais0721-Dec-08 19:51
ais0721-Dec-08 19:51 
AnswerRe: Problem Regarding Dataset Pin
dan!sh 21-Dec-08 20:02
professional dan!sh 21-Dec-08 20:02 
AnswerRe: Problem Regarding Dataset Pin
Vimalsoft(Pty) Ltd21-Dec-08 20:33
professionalVimalsoft(Pty) Ltd21-Dec-08 20:33 
QuestionC#.net Reading a word document Pin
ashok104221-Dec-08 18:18
ashok104221-Dec-08 18:18 
AnswerRe: C#.net Reading a word document Pin
Christian Graus21-Dec-08 20:00
protectorChristian Graus21-Dec-08 20:00 

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.