Click here to Skip to main content
15,888,121 members
Home / Discussions / C#
   

C#

 
GeneralAdding control to a form delets the custom control from the form Pin
SandeepN17-Sep-04 6:47
SandeepN17-Sep-04 6:47 
GeneralRe: Adding control to a form delets the custom control from the form Pin
Jay Shankar17-Sep-04 15:57
Jay Shankar17-Sep-04 15:57 
GeneralRe: Adding control to a form delets the custom control from the form Pin
Jay Shankar17-Sep-04 16:03
Jay Shankar17-Sep-04 16:03 
Generalprotect my picture Pin
oOomen17-Sep-04 6:39
oOomen17-Sep-04 6:39 
GeneralRe: protect my picture Pin
Heath Stewart17-Sep-04 7:00
protectorHeath Stewart17-Sep-04 7:00 
GeneralUnbound checkbox column in datagrid Pin
blakeb_117-Sep-04 6:12
blakeb_117-Sep-04 6:12 
GeneralRe: Unbound checkbox column in datagrid Pin
sreejith ss nair17-Sep-04 23:50
sreejith ss nair17-Sep-04 23:50 
QuestionBeginner: How to use BitFlags? Pin
matthias s.17-Sep-04 5:19
matthias s.17-Sep-04 5:19 
Hi,

I've got a class with an Options property. I'd like to implement this property in a way that a calling syntax like
MyClassInstance.Options = MyClass.Option1 | MyClass.Option2;
can be used. My questions with that:

1. How do I store these BitFlags internally?
2. How do I check for whether certain Bits have been set.
3. The above code shows how to switch 2 bits ON (hopefully, correct me if I'm wrong). How would the syntax look If I'd like to switch Option1 ON and Option2 OFF?

I'd highly appreceate a short example!

Thanks in advance.

Matthias


If eell I ,nust draw to your atenttion to het fakt that I can splel perfrectly well - i;ts my typeying that sukcs.
(Lounge/David Wulff)

AnswerRe: Beginner: How to use BitFlags? Pin
leppie17-Sep-04 5:32
leppie17-Sep-04 5:32 
AnswerRe: Beginner: How to use BitFlags? Pin
Heath Stewart17-Sep-04 6:28
protectorHeath Stewart17-Sep-04 6:28 
GeneralRe: Beginner: How to use BitFlags? Pin
matthias s.17-Sep-04 7:01
matthias s.17-Sep-04 7:01 
AnswerRe: Beginner: How to use BitFlags? Pin
Grimolfr17-Sep-04 7:31
Grimolfr17-Sep-04 7:31 
GeneralInvisible Text on Grid Pin
dbetting17-Sep-04 5:02
dbetting17-Sep-04 5:02 
QuestionIs this a compiler error? Pin
gordonpagan17-Sep-04 4:37
gordonpagan17-Sep-04 4:37 
AnswerRe: Is this a compiler error? Pin
leppie17-Sep-04 5:19
leppie17-Sep-04 5:19 
AnswerRe: Is this a compiler error? Pin
Steven Campbell17-Sep-04 7:46
Steven Campbell17-Sep-04 7:46 
GeneralWideChar Pin
yyf17-Sep-04 3:14
yyf17-Sep-04 3:14 
GeneralRe: WideChar Pin
Heath Stewart17-Sep-04 6:33
protectorHeath Stewart17-Sep-04 6:33 
GeneralFilefield postback woes Pin
Vodstok17-Sep-04 3:08
Vodstok17-Sep-04 3:08 
GeneralRe: Filefield postback woes Pin
sreejith ss nair17-Sep-04 3:40
sreejith ss nair17-Sep-04 3:40 
GeneralRe: Filefield postback woes Pin
Vodstok17-Sep-04 4:36
Vodstok17-Sep-04 4:36 
GeneralStream writing html Pin
Mikke_x17-Sep-04 2:50
Mikke_x17-Sep-04 2:50 
GeneralRe: Stream writing html Pin
Steven Campbell17-Sep-04 4:33
Steven Campbell17-Sep-04 4:33 
GeneralRe: Stream writing html Pin
Heath Stewart17-Sep-04 6:53
protectorHeath Stewart17-Sep-04 6:53 
GeneralRe: Stream writing html Pin
Mikke_x17-Sep-04 7:14
Mikke_x17-Sep-04 7:14 

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.