Click here to Skip to main content
15,903,012 members
Home / Discussions / C#
   

C#

 
QuestionError : Not All Code Paths Return A Value Pin
ctrlnick11-Sep-07 6:50
ctrlnick11-Sep-07 6:50 
AnswerRe: Error : Not All Code Paths Return A Value Pin
Patrick Etc.11-Sep-07 6:53
Patrick Etc.11-Sep-07 6:53 
AnswerRe: Error : Not All Code Paths Return A Value Pin
Christian Graus11-Sep-07 7:00
protectorChristian Graus11-Sep-07 7:00 
QuestionDifferentiate :User accessing form internet and user accessing from with the organization Pin
ss.mmm11-Sep-07 6:40
ss.mmm11-Sep-07 6:40 
AnswerRe: Differentiate :User accessing form internet and user accessing from with the organization Pin
Giorgi Dalakishvili11-Sep-07 6:47
mentorGiorgi Dalakishvili11-Sep-07 6:47 
QuestionHow to call ButtonClick event? Pin
ss.mmm11-Sep-07 6:38
ss.mmm11-Sep-07 6:38 
AnswerRe: How to call ButtonClick event? Pin
Christian Graus11-Sep-07 6:47
protectorChristian Graus11-Sep-07 6:47 
AnswerRe: How to call ButtonClick event? Pin
Giorgi Dalakishvili11-Sep-07 6:56
mentorGiorgi Dalakishvili11-Sep-07 6:56 
First of all, you can have the same event handler for both of the buttons. If you are using VS 2005, you can choose the event handler for button2 from dropdown list of event handlers at the click event. You can also specify the same event handler like this:

<br />
this.Button1.Click += new System.EventHandler(this.Button1_Click);<br />
this.Button2.Click += new System.EventHandler(this.Button1_Click);<br />


Secondly, EventArgs doesn't have any properties that carries any useful information so what do you need instead of EventArgs.Empty ? If you need any additional properties you can write you own class that inherits from EventArgs and extends its functionality

#region signature
my articles
#endregion

GeneralRe: How to call ButtonClick event? Pin
ss.mmm11-Sep-07 8:42
ss.mmm11-Sep-07 8:42 
QuestionCrystal Reports XI R2 question Pin
mjmcinto11-Sep-07 5:56
mjmcinto11-Sep-07 5:56 
AnswerRe: Crystal Reports XI R2 question Pin
Mark Miller11-Sep-07 7:42
Mark Miller11-Sep-07 7:42 
QuestionLooking for vector editor. Pin
nEJIbMEHb11-Sep-07 5:54
nEJIbMEHb11-Sep-07 5:54 
AnswerRe: Looking for vector editor. Pin
Christian Graus11-Sep-07 6:04
protectorChristian Graus11-Sep-07 6:04 
GeneralRe: Looking for vector editor. Pin
nEJIbMEHb11-Sep-07 6:16
nEJIbMEHb11-Sep-07 6:16 
GeneralRe: Looking for vector editor. Pin
Christian Graus11-Sep-07 6:33
protectorChristian Graus11-Sep-07 6:33 
GeneralRe: Looking for vector editor. Pin
Pete O'Hanlon11-Sep-07 10:58
mvePete O'Hanlon11-Sep-07 10:58 
QuestionErase GraphicsPath Pin
greekius11-Sep-07 4:57
greekius11-Sep-07 4:57 
AnswerRe: Erase GraphicsPath Pin
Mark Miller11-Sep-07 5:56
Mark Miller11-Sep-07 5:56 
GeneralRe: Erase GraphicsPath Pin
greekius11-Sep-07 6:50
greekius11-Sep-07 6:50 
GeneralRe: Erase GraphicsPath Pin
Mark Miller11-Sep-07 7:12
Mark Miller11-Sep-07 7:12 
GeneralRe: Erase GraphicsPath Pin
greekius11-Sep-07 11:42
greekius11-Sep-07 11:42 
QuestionSort ListView? Pin
andredani11-Sep-07 4:46
andredani11-Sep-07 4:46 
AnswerRe: Sort ListView? Pin
led mike11-Sep-07 4:51
led mike11-Sep-07 4:51 
QuestionFontstyle of a column text in a datagridview Pin
anu8111-Sep-07 4:34
anu8111-Sep-07 4:34 
AnswerRe: Fontstyle of a column text in a datagridview Pin
Obaid ur Rehman11-Sep-07 7:41
Obaid ur Rehman11-Sep-07 7:41 

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.