Click here to Skip to main content
15,882,017 members
Home / Discussions / C#
   

C#

 
AnswerRe: spd Pin
Luc Pattyn13-Sep-09 11:52
sitebuilderLuc Pattyn13-Sep-09 11:52 
GeneralRe: spd Pin
Henry Minute13-Sep-09 12:31
Henry Minute13-Sep-09 12:31 
GeneralRe: spd Pin
Luc Pattyn13-Sep-09 12:52
sitebuilderLuc Pattyn13-Sep-09 12:52 
GeneralRe: spd Pin
Henry Minute13-Sep-09 13:25
Henry Minute13-Sep-09 13:25 
Questionis0 8583 Pin
moein.serpico13-Sep-09 9:48
moein.serpico13-Sep-09 9:48 
AnswerRe: is0 8583 Pin
Henry Minute13-Sep-09 9:57
Henry Minute13-Sep-09 9:57 
AnswerRe: is0 8583 Pin
Christian Graus13-Sep-09 13:21
protectorChristian Graus13-Sep-09 13:21 
QuestionModify file attributes... Access denied. Pin
JollyMansArt13-Sep-09 8:46
JollyMansArt13-Sep-09 8:46 
I am trying to modify the file's attibutes to apply hidden feature. This method appears to be inadequite as it does not change my file attributes. Instead as I run my code and watch what is doing it give me a access denied #5 and invalid parameter #87. What am I doing wrong?



Bitmap bitmap = new Bitmap(1, 1);
                    //string fullPath = string.Format("{0}\\bitmap.bmp", Environment.GetFolderPath(Environment.SpecialFolder.MyPictures));
                    //string fullPath = string.Format("{0}", BMP_Path);
                    bitmap.Save(BMP_Path);
                    if ((File.GetAttributes(BMP_Path) & FileAttributes.Hidden) != FileAttributes.Hidden)
                    {
                        //Adds to the existing file attributes
                        File.SetAttributes(BMP_Path, File.GetAttributes(BMP_Path) | FileAttributes.Hidden);
                        //Replaces the file attributes
                        File.SetAttributes(BMP_Path, File.GetAttributes(BMP_Path) & FileAttributes.Hidden);

                    }

AnswerRe: Modify file attributes... Access denied. Pin
Henry Minute13-Sep-09 9:34
Henry Minute13-Sep-09 9:34 
GeneralRe: Modify file attributes... Access denied. Pin
JollyMansArt13-Sep-09 10:01
JollyMansArt13-Sep-09 10:01 
GeneralRe: Modify file attributes... Access denied. Pin
Henry Minute13-Sep-09 10:20
Henry Minute13-Sep-09 10:20 
GeneralRe: Modify file attributes... Access denied. Pin
JollyMansArt13-Sep-09 11:38
JollyMansArt13-Sep-09 11:38 
QuestionC# for Linux Pin
DarkSorrow3813-Sep-09 7:55
DarkSorrow3813-Sep-09 7:55 
AnswerRe: C# for Linux Pin
N a v a n e e t h13-Sep-09 8:01
N a v a n e e t h13-Sep-09 8:01 
Questionimage to crystal report Pin
tanweer13-Sep-09 6:49
tanweer13-Sep-09 6:49 
AnswerRe: image to crystal report Pin
Henry Minute13-Sep-09 9:41
Henry Minute13-Sep-09 9:41 
Questioncodr to make superscript and subscripi of selected text Pin
santosh_anu13-Sep-09 4:14
santosh_anu13-Sep-09 4:14 
AnswerRe: codr to make superscript and subscripi of selected text Pin
Eddy Vluggen13-Sep-09 4:21
professionalEddy Vluggen13-Sep-09 4:21 
AnswerRe: codr to make superscript and subscripi of selected text Pin
dan!sh 13-Sep-09 4:30
professional dan!sh 13-Sep-09 4:30 
QuestionFinding class and method definitions in .cs files Pin
LeonLiber13-Sep-09 3:50
LeonLiber13-Sep-09 3:50 
AnswerRe: Finding class and method definitions in .cs files Pin
Richard MacCutchan13-Sep-09 4:18
mveRichard MacCutchan13-Sep-09 4:18 
AnswerRe: Finding class and method definitions in .cs files [modified] Pin
dan!sh 13-Sep-09 4:21
professional dan!sh 13-Sep-09 4:21 
GeneralRe: Finding class and method definitions in .cs files Pin
LeonLiber13-Sep-09 5:37
LeonLiber13-Sep-09 5:37 
GeneralRe: Finding class and method definitions in .cs files Pin
Daniel Grunwald13-Sep-09 8:03
Daniel Grunwald13-Sep-09 8:03 
GeneralRe: Finding class and method definitions in .cs files Pin
LeonLiber13-Sep-09 8:32
LeonLiber13-Sep-09 8: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.