Click here to Skip to main content
16,007,885 members
Home / Discussions / C#
   

C#

 
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 
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 
whosit wrote:
if(((FileAttributes)pscd.dwFileAttributes|FileAttributes.Directory)==FileAttributes.Directory)

I played around a bit more with the sample and indeed the code above doesn't work like the author intended, but because he wrote exception-safe code you never know it.

I through in some System.Diagnositc.Trace.WriteLine calls through out the function, the first was in the if statement where I told it to print the FileAttributes of the item that caused it to trigger the return. Interesting, as I thought only those that are have Directory get printed.

Then I added some code in the exception handlers to print out the exceptions and the FileAttributes of the item that had the exception. Each of the exceptions was Access to the path "C:\path" is denied. and the FileAttributes was Directory and ReadOnly or Directory and System.


whosit wrote:
psci.csFlags=SHCOLSTATE.TYPE_STR & SHCOLSTATE.ONBYDEFAULT & SHCOLSTATE.SLOW;

As to why you had to use & for it to work, I assume it deals with the stuff above. That is my next thing to try Smile | :)

James

"It is self repeating, of unknown pattern"
Data - Star Trek: The Next Generation

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 
Questionhow to program with c# for exchange 2000 Pin
wangzhibin1-Apr-03 22:38
wangzhibin1-Apr-03 22:38 
AnswerRe: how to program with c# for exchange 2000 Pin
Kannan Kalyanaraman1-Apr-03 23:04
Kannan Kalyanaraman1-Apr-03 23:04 
GeneralStoring application configuration Pin
peterchen1-Apr-03 22:13
peterchen1-Apr-03 22:13 

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.