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

C#

 
GeneralPressing DELETE button in DataGrid Pin
Mazdak2-Apr-03 7:45
Mazdak2-Apr-03 7:45 
GeneralRe: Pressing DELETE button in DataGrid Pin
Paul Riley2-Apr-03 7:50
Paul Riley2-Apr-03 7:50 
GeneralRe: Pressing DELETE button in DataGrid Pin
Mazdak2-Apr-03 7:53
Mazdak2-Apr-03 7:53 
GeneralRe: Pressing DELETE button in DataGrid Pin
Mazdak2-Apr-03 9:06
Mazdak2-Apr-03 9:06 
GeneralRe: Pressing DELETE button in DataGrid Pin
Mazdak2-Apr-03 9:34
Mazdak2-Apr-03 9:34 
QuestionC# Bitwise Operators? Pin
eidylon2-Apr-03 5:00
eidylon2-Apr-03 5:00 
AnswerRe: C# Bitwise Operators? Pin
James T. Johnson2-Apr-03 5:51
James T. Johnson2-Apr-03 5:51 
GeneralRe: C# Bitwise Operators? Pin
eidylon2-Apr-03 7:49
eidylon2-Apr-03 7:49 
Well, i dont think so, but its not mostly my code. To make my CRC32 ColumnHandler i took the ColumnH code from the first project below, and just dropped in the CRC32 class from the second one in place of the MD5 code. The only other changes i made (which is where i had the & vs. | problem) Is below...

http://www.codeproject.com/csharp/ColumnHandler.asp
http://www.codeproject.com/csharp/crc32_dotnet.asp

In the implementation of GetColumnInfo i changed the column title and description and then:

psci.fmt=LVCFMT.RIGHT;<br />
psci.cChars=40;<br />
<br />
psci.csFlags=SHCOLSTATE.TYPE_STR;


to

psci.fmt=LVCFMT.LEFT;<br />
psci.cChars=40;<br />
<br />
psci.csFlags=SHCOLSTATE.TYPE_STR & SHCOLSTATE.ONBYDEFAULT & SHCOLSTATE.SLOW;


The last line setting csFlags is where i had problems. When i tried to use the OR (|) it consistently hung. But when i use the AND (&) it works just beautifully with the right results and all.
Then what threw me off even more was a line (unchanged) in GetItemData which reads:
if(((FileAttributes)pscd.dwFileAttributes|FileAttributes.Directory)==FileAttributes.Directory)
Where the original author is checking the flag with an OR.
This is all quite backwards from what i know of bit-wise logic.
Any explanations or ideas why this is?
GeneralRe: C# Bitwise Operators? Pin
James T. Johnson2-Apr-03 8:45
James T. Johnson2-Apr-03 8:45 
GeneralRe: C# Bitwise Operators? Pin
eidylon2-Apr-03 8:54
eidylon2-Apr-03 8:54 
GeneralRe: C# Bitwise Operators? Pin
James T. Johnson2-Apr-03 9:03
James T. Johnson2-Apr-03 9:03 
GeneralRe: C# Bitwise Operators? Pin
eidylon2-Apr-03 9:08
eidylon2-Apr-03 9:08 
GeneralRe: C# Bitwise Operators? Pin
Roger Alsing2-Apr-03 22:09
Roger Alsing2-Apr-03 22:09 
Generaljavascript not working in webbrowswer control Pin
monrobot132-Apr-03 4:22
monrobot132-Apr-03 4:22 
GeneralRe: javascript not working in webbrowswer control Pin
Stephane Rodriguez.2-Apr-03 19:40
Stephane Rodriguez.2-Apr-03 19:40 
GeneralRe: javascript not working in webbrowswer control Pin
monrobot133-Apr-03 3:12
monrobot133-Apr-03 3:12 
GeneralRe: javascript not working in webbrowswer control Pin
Stephane Rodriguez.3-Apr-03 3:19
Stephane Rodriguez.3-Apr-03 3:19 
GeneralC# Dynamic Assembly Pin
anders2-Apr-03 4:15
anders2-Apr-03 4:15 
GeneralRe: C# Dynamic Assembly Pin
Oleksandr Kucherenko3-Apr-03 5:01
Oleksandr Kucherenko3-Apr-03 5:01 
Question.net Attributes? Pin
Roger Alsing2-Apr-03 0:54
Roger Alsing2-Apr-03 0:54 
AnswerRe: .net Attributes? Pin
Nick Parker2-Apr-03 4:42
protectorNick Parker2-Apr-03 4:42 
GeneralActive Directory - Users or whatever Pin
Velichko Sarev2-Apr-03 0:02
Velichko Sarev2-Apr-03 0:02 
GeneralRe: Active Directory - Users or whatever Pin
Mazdak2-Apr-03 7:49
Mazdak2-Apr-03 7:49 
GeneralRe: Active Directory - Users or whatever Pin
wangzhibin2-Apr-03 14:30
wangzhibin2-Apr-03 14:30 
GeneralC# and CVS Pin
se99ts1-Apr-03 22:58
se99ts1-Apr-03 22: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.