Click here to Skip to main content
16,013,918 members
Home / Discussions / C#
   

C#

 
GeneralRe: Disable Close Button Pin
Nish Nishant27-Apr-02 15:00
sitebuilderNish Nishant27-Apr-02 15:00 
GeneralRe: Disable Close Button Pin
Neil Van Note27-Apr-02 15:34
Neil Van Note27-Apr-02 15:34 
GeneralRe: Disable Close Button Pin
Sabran28-Apr-02 9:03
Sabran28-Apr-02 9:03 
GeneralRe: Disable Close Button Pin
Neil Van Note28-Apr-02 9:33
Neil Van Note28-Apr-02 9:33 
GeneralThreads Pin
Sabran26-Apr-02 23:58
Sabran26-Apr-02 23:58 
GeneralRe: Threads Pin
James T. Johnson27-Apr-02 11:27
James T. Johnson27-Apr-02 11:27 
GeneralRe: Threads Pin
Sabran27-Apr-02 13:00
Sabran27-Apr-02 13:00 
GeneralRe: Threads Pin
James T. Johnson27-Apr-02 13:52
James T. Johnson27-Apr-02 13:52 
(generateStart.ThreadState & (ThreadState.Running | ThreadState.Suspended) == ( ThreadState.Running | ThreadState.Suspended)

If you want to check whether either flag is set either split it up into 2 checks, or just see if the result is greater than zero.

You can do the same with a single check as well (generateStart.ThreadState & ThreadState.Running) > 0.

I didn't mention that earlier because my head was thinking that you couldn't compare an enum in that way, you of course can compare them that way.

James



Simplicity Rules!
GeneralRe: Threads Pin
Sabran28-Apr-02 9:11
Sabran28-Apr-02 9:11 
GeneralDataGrid Cell / Row Color Change Pin
Prash26-Apr-02 23:28
Prash26-Apr-02 23:28 
GeneralRe: DataGrid Cell / Row Color Change Pin
James T. Johnson26-Apr-02 23:49
James T. Johnson26-Apr-02 23:49 
GeneralIDictionary Pin
Christian Graus26-Apr-02 18:07
protectorChristian Graus26-Apr-02 18:07 
GeneralRe: IDictionary Pin
Neil Van Note26-Apr-02 18:37
Neil Van Note26-Apr-02 18:37 
GeneralRe: IDictionary Pin
Tom Archer26-Apr-02 18:43
Tom Archer26-Apr-02 18:43 
GeneralChild Form positioning according to resize of MdiParent Form Pin
Prash26-Apr-02 17:56
Prash26-Apr-02 17:56 
GeneralRe: Child Form positioning according to resize of MdiParent Form Pin
James T. Johnson26-Apr-02 18:49
James T. Johnson26-Apr-02 18:49 
QuestionJust curious .. Wheres my Business Logic ? Pin
Dato26-Apr-02 15:15
Dato26-Apr-02 15:15 
AnswerRe: Just curious .. Wheres my Business Logic ? Pin
James T. Johnson26-Apr-02 16:22
James T. Johnson26-Apr-02 16:22 
GeneralDrawing Charts Pin
26-Apr-02 14:19
suss26-Apr-02 14:19 
GeneralRe: Drawing Charts Pin
James T. Johnson26-Apr-02 16:58
James T. Johnson26-Apr-02 16:58 
GeneralRe: Drawing Charts Pin
Nick Parker26-Apr-02 18:13
protectorNick Parker26-Apr-02 18:13 
QuestionHow can I...? Pin
Vasti26-Apr-02 10:02
Vasti26-Apr-02 10:02 
AnswerRe: How can I...? Pin
Tom Archer26-Apr-02 10:10
Tom Archer26-Apr-02 10:10 
AnswerRe: How can I...? Pin
Vlad Beu26-Apr-02 11:08
Vlad Beu26-Apr-02 11:08 
GeneralRe: How can I...? Pin
Tom Archer26-Apr-02 11:15
Tom Archer26-Apr-02 11:15 

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.