Click here to Skip to main content
15,913,934 members
Home / Discussions / C#
   

C#

 
AnswerRe: How can Java runs under Java Virtual Machine in linux faster than C# in windows? Pin
NotPolitcallyCorrect27-Jun-13 4:13
NotPolitcallyCorrect27-Jun-13 4:13 
GeneralRe: How can Java runs under Java Virtual Machine in linux faster than C# in windows? Pin
Richard MacCutchan27-Jun-13 1:45
mveRichard MacCutchan27-Jun-13 1:45 
GeneralRe: How can Java runs under Java Virtual Machine in linux faster than C# in windows? Pin
Richard MacCutchan26-Jun-13 22:56
mveRichard MacCutchan26-Jun-13 22:56 
AnswerRe: How can Java runs under Java Virtual Machine in linux faster than C# in windows? Pin
Eddy Vluggen26-Jun-13 22:36
professionalEddy Vluggen26-Jun-13 22:36 
GeneralRe: How can Java runs under Java Virtual Machine in linux faster than C# in windows? Pin
crunchor26-Jun-13 22:45
crunchor26-Jun-13 22:45 
GeneralRe: How can Java runs under Java Virtual Machine in linux faster than C# in windows? Pin
Eddy Vluggen26-Jun-13 23:09
professionalEddy Vluggen26-Jun-13 23:09 
AnswerRe: How can Java runs under Java Virtual Machine in linux faster than C# in windows? Pin
Pete O'Hanlon26-Jun-13 22:55
mvePete O'Hanlon26-Jun-13 22:55 
JokeRe: How can Java runs under Java Virtual Machine in linux faster than C# in windows? Pin
cptKoala27-Jun-13 22:30
cptKoala27-Jun-13 22:30 
GeneralRe: How can Java runs under Java Virtual Machine in linux faster than C# in windows? Pin
Pete O'Hanlon27-Jun-13 22:39
mvePete O'Hanlon27-Jun-13 22:39 
AnswerRe: How can Java runs under Java Virtual Machine in linux faster than C# in windows? Pin
Keith Barrow27-Jun-13 0:02
professionalKeith Barrow27-Jun-13 0:02 
AnswerRe: How can Java runs under Java Virtual Machine in linux faster than C# in windows? Pin
jschell27-Jun-13 9:18
jschell27-Jun-13 9:18 
Questionhow to call a method in web service without adding service reference to the code Pin
hosseinDolat26-Jun-13 16:16
hosseinDolat26-Jun-13 16:16 
AnswerRe: how to call a method in web service without adding service reference to the code Pin
Ron Beyer26-Jun-13 16:24
professionalRon Beyer26-Jun-13 16:24 
QuestionGenerating properties of a class dynamically Pin
0bx26-Jun-13 12:19
0bx26-Jun-13 12:19 
AnswerRe: Generating properties of a class dynamically Pin
Ron Beyer26-Jun-13 14:37
professionalRon Beyer26-Jun-13 14:37 
GeneralRe: Generating properties of a class dynamically Pin
0bx26-Jun-13 16:11
0bx26-Jun-13 16:11 
GeneralRe: Generating properties of a class dynamically Pin
Ron Beyer26-Jun-13 16:18
professionalRon Beyer26-Jun-13 16:18 
GeneralRe: Generating properties of a class dynamically Pin
Freak3027-Jun-13 2:47
Freak3027-Jun-13 2:47 
GeneralRe: Generating properties of a class dynamically Pin
0bx28-Jun-13 3:01
0bx28-Jun-13 3:01 
QuestionC# select excel file from directory path Pin
classy_dog26-Jun-13 10:56
classy_dog26-Jun-13 10:56 
AnswerRe: C# select excel file from directory path Pin
Ron Beyer26-Jun-13 15:26
professionalRon Beyer26-Jun-13 15:26 
Question2 way events Pin
bfis10813726-Jun-13 8:56
bfis10813726-Jun-13 8:56 
AnswerRe: 2 way events Pin
Ron Beyer26-Jun-13 9:12
professionalRon Beyer26-Jun-13 9:12 
GeneralRe: 2 way events Pin
bfis10813726-Jun-13 10:34
bfis10813726-Jun-13 10:34 
AnswerRe: 2 way events Pin
Dave Kreskowiak26-Jun-13 12:10
mveDave Kreskowiak26-Jun-13 12:10 
Events are alwyas "2 way", though they are never described as such.

There is always an event provider and one or more subscribers to that event. The event usually passes the source of the event (usually as Object) and some kind of EventArgs object. What you may not realize is that you can modify the Eventargs object passed to your event handler. When the event handler code goes out of scope, the event provider gets control back and can look at the data that is in the EventArgs object it sent to the handler. For an example of this, see Form_Closing and it's FormClosingEventArgs class. In there, you'll find a Cancel property that the handler code can set to cancel the form being closed.

Another example is KeyPressEventArgs and its Handled property.

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.