Click here to Skip to main content
15,893,622 members
Home / Discussions / C#
   

C#

 
AnswerRe: project on voice control Pin
Software_Specialist13-Apr-07 3:58
Software_Specialist13-Apr-07 3:58 
AnswerRe: project on voice control Pin
Judah Gabriel Himango13-Apr-07 4:20
sponsorJudah Gabriel Himango13-Apr-07 4:20 
QuestionStar rating Pin
APHerman13-Apr-07 3:33
APHerman13-Apr-07 3:33 
AnswerRe: Star rating Pin
Judah Gabriel Himango13-Apr-07 4:18
sponsorJudah Gabriel Himango13-Apr-07 4:18 
QuestionMultiple search perameter Pin
jayvaishnav8213-Apr-07 3:20
jayvaishnav8213-Apr-07 3:20 
AnswerRe: Multiple search perameter Pin
Judah Gabriel Himango13-Apr-07 4:14
sponsorJudah Gabriel Himango13-Apr-07 4:14 
QuestionJava to C#.NET pause button code ? [modified] Pin
Software_Specialist13-Apr-07 3:13
Software_Specialist13-Apr-07 3:13 
AnswerRe: Java to C#.NET pause button code ? Pin
Judah Gabriel Himango13-Apr-07 4:12
sponsorJudah Gabriel Himango13-Apr-07 4:12 
Your post doesn't really have a specific question, so this will be a rather general answer.

I can tell you that you don't need ActionListener class -- while Java forces you to create a class that handles some "event" (in this case, the ActionPerformed event), C# lets you do this using events and delegates. So it would be

fPause.ActionPerformed += myActionPerformedHandlerFunction;

...

void myActionPerformedHandlerFunction(...)
{
   STAFResult stafResult = ...
}


For semaphores, look at System.Threading.Semaphore[^]

You can pause any thread (and thus, the whole application) by waiting on a semaphore using the WaitOne method on the Semaphore class. The Semaphore class should work much like the semaphore used in your Java code.


Tech, life, family, faith: Give me a visit.
I'm currently blogging about: How men in the Catholic Church replaced Passover with Easter
The apostle Paul, modernly speaking: Epistles of Paul

Judah Himango


GeneralRe: Java to C#.NET pause button code ? Pin
Software_Specialist13-Apr-07 5:09
Software_Specialist13-Apr-07 5:09 
GeneralRe: Java to C#.NET pause button code ? Pin
Judah Gabriel Himango13-Apr-07 11:17
sponsorJudah Gabriel Himango13-Apr-07 11:17 
QuestionListbox selecteditems Pin
Saamir13-Apr-07 3:04
Saamir13-Apr-07 3:04 
AnswerRe: Listbox selecteditems Pin
Luc Pattyn13-Apr-07 4:14
sitebuilderLuc Pattyn13-Apr-07 4:14 
AnswerRe: Listbox selecteditems Pin
Saamir13-Apr-07 11:32
Saamir13-Apr-07 11:32 
GeneralRe: Listbox selecteditems Pin
Luc Pattyn13-Apr-07 14:22
sitebuilderLuc Pattyn13-Apr-07 14:22 
GeneralRe: Listview selecteditems Pin
Saamir15-Apr-07 8:05
Saamir15-Apr-07 8:05 
GeneralRe: Listview selecteditems Pin
Luc Pattyn15-Apr-07 8:24
sitebuilderLuc Pattyn15-Apr-07 8:24 
GeneralRe: Listview selecteditems Pin
Saamir15-Apr-07 14:22
Saamir15-Apr-07 14:22 
QuestionText effects using GDI... Pin
Ravikumar Patra13-Apr-07 2:21
professionalRavikumar Patra13-Apr-07 2:21 
AnswerRe: Text effects using GDI... Pin
Pete O'Hanlon13-Apr-07 3:02
mvePete O'Hanlon13-Apr-07 3:02 
GeneralRe: Text effects using GDI... Pin
Ravikumar Patra13-Apr-07 3:09
professionalRavikumar Patra13-Apr-07 3:09 
Questionhow to get Coloumns counts of ListView using SendMessage() Pin
Farhan Ali13-Apr-07 1:32
Farhan Ali13-Apr-07 1:32 
QuestionWrong forum? Pin
CPallini13-Apr-07 2:22
mveCPallini13-Apr-07 2:22 
AnswerRe: Wrong forum? Pin
Farhan Ali13-Apr-07 2:25
Farhan Ali13-Apr-07 2:25 
GeneralRe: Wrong forum? Pin
CPallini13-Apr-07 2:54
mveCPallini13-Apr-07 2:54 
GeneralRe: Wrong forum? Pin
Farhan Ali13-Apr-07 19:32
Farhan Ali13-Apr-07 19:32 

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.