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

C#

 
GeneralRe: Naming Conventions Pin
eggie516-Jun-04 11:47
eggie516-Jun-04 11:47 
GeneralRe: Naming Conventions Pin
Ganjah78616-Jun-04 11:50
Ganjah78616-Jun-04 11:50 
GeneralRe: Naming Conventions Pin
Stefan Troschuetz15-Jun-04 21:24
Stefan Troschuetz15-Jun-04 21:24 
GeneralManaged HTML - GPL Pin
Roger Alsing15-Jun-04 20:28
Roger Alsing15-Jun-04 20:28 
GeneralRe: Managed HTML - GPL Pin
CWIZO15-Jun-04 21:19
CWIZO15-Jun-04 21:19 
GeneralRe: Managed HTML - GPL Pin
Roger Alsing15-Jun-04 21:25
Roger Alsing15-Jun-04 21:25 
GeneralRe: Running Event Methods Pin
myNameIsRon15-Jun-04 20:20
myNameIsRon15-Jun-04 20:20 
GeneralRe: Running Event Methods Pin
Stefan Troschuetz15-Jun-04 21:39
Stefan Troschuetz15-Jun-04 21:39 
myNameIsRon wrote:
How do you run an Event Method (onclick Button) from a void Method?

You can call an event handler, i assume you mean this by Event Method, from everywhere you want as long as you can access it.

myNameIsRon wrote:
The Event Method requires the object and System.EventArgs variables?
How would you supply them from a none Event Method?


As sender object you generally pass this and the EventArgs object has to be constructed.
btn_ClearTill_Click(this, new System.EventArgs());


myNameIsRon wrote:
Also, I've noticed that I can run an Event Method from another Event Method my using:
btn_ClearTill_Click(sender, e);
Is this not a good idea?


You can call an event handler from within another event handler, but it would be better to subscribe them both to the occuring event. This way both event handlers get automatically called when the event occurs.

www.troschuetz.de
GeneralRe: Running Event Methods Pin
myNameIsRon16-Jun-04 6:27
myNameIsRon16-Jun-04 6:27 
GeneralCompile Time Unmanaged DLL Checking Pin
MKlucher15-Jun-04 19:21
MKlucher15-Jun-04 19:21 
GeneralRe: Compile Time Unmanaged DLL Checking Pin
Heath Stewart16-Jun-04 4:06
protectorHeath Stewart16-Jun-04 4:06 
GeneralRe: Compile Time Unmanaged DLL Checking Pin
MKlucher16-Jun-04 6:40
MKlucher16-Jun-04 6:40 
GeneralRe: Compile Time Unmanaged DLL Checking Pin
Heath Stewart16-Jun-04 8:36
protectorHeath Stewart16-Jun-04 8:36 
GeneralRe: Compile Time Unmanaged DLL Checking Pin
MKlucher16-Jun-04 10:13
MKlucher16-Jun-04 10:13 
GeneralRe: Compile Time Unmanaged DLL Checking Pin
Heath Stewart16-Jun-04 10:15
protectorHeath Stewart16-Jun-04 10:15 
GeneralCalendar Control Pin
Tarakeshwar Reddy15-Jun-04 19:04
professionalTarakeshwar Reddy15-Jun-04 19:04 
GeneralRe: Calendar Control Pin
Heath Stewart16-Jun-04 4:04
protectorHeath Stewart16-Jun-04 4:04 
GeneralSending messages from a thread Pin
caraboss15-Jun-04 18:18
caraboss15-Jun-04 18:18 
GeneralRe: Sending messages from a thread Pin
Corinna John15-Jun-04 20:04
Corinna John15-Jun-04 20:04 
GeneralRe: Sending messages from a thread Pin
caraboss16-Jun-04 3:45
caraboss16-Jun-04 3:45 
GeneralRe: Sending messages from a thread Pin
Heath Stewart16-Jun-04 4:00
protectorHeath Stewart16-Jun-04 4:00 
GeneralRe: Sending messages from a thread Pin
caraboss16-Jun-04 4:17
caraboss16-Jun-04 4:17 
GeneralRe: Sending messages from a thread Pin
caraboss16-Jun-04 4:40
caraboss16-Jun-04 4:40 
QuestionIndexer for a variables property? Pin
khan200015-Jun-04 17:00
khan200015-Jun-04 17:00 
AnswerRe: Indexer for a variables property? Pin
Heath Stewart16-Jun-04 3:58
protectorHeath Stewart16-Jun-04 3:58 

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.