Click here to Skip to main content
15,921,371 members
Home / Discussions / C#
   

C#

 
AnswerRe: Access Pin
dan!sh 12-Sep-09 6:21
professional dan!sh 12-Sep-09 6:21 
AnswerRe: Access Pin
cjb11014-Sep-09 3:47
cjb11014-Sep-09 3:47 
Questionextracting images from pdf , creating image from an individual pdf page Pin
Jayapal Chandran12-Sep-09 5:11
Jayapal Chandran12-Sep-09 5:11 
AnswerRe: extracting images from pdf , creating image from an individual pdf page Pin
Henry Minute12-Sep-09 5:34
Henry Minute12-Sep-09 5:34 
QuestionAlternating output of two dictionaries Pin
ated8712-Sep-09 4:24
ated8712-Sep-09 4:24 
AnswerRe: Alternating output of two dictionaries Pin
Luc Pattyn12-Sep-09 5:13
sitebuilderLuc Pattyn12-Sep-09 5:13 
GeneralRe: Alternating output of two dictionaries Pin
ated8712-Sep-09 6:39
ated8712-Sep-09 6:39 
QuestionFile Permission Pin
DarkSorrow3812-Sep-09 4:16
DarkSorrow3812-Sep-09 4:16 
I was just trying to give file premission to my dummy files but encountered a problem. I found out that only the last applied permission is imposed on the file while rest are overriden or not applied.
using System;
using System.IO;
public class RegistryEditor
{
    public static void Main()
    {
        try
        {
            FileInfo f = new FileInfo(@"C:\Test.txt");
            f.Attributes = FileAttributes.System;
            FileInfo f1 = new FileInfo(@"C:\Test.txt");
            f1.Attributes = FileAttributes.ReadOnly;
            FileInfo f2 = new FileInfo(@"C:\Test.txt");
            f2.Attributes = FileAttributes.Hidden;
            FileInfo i = new FileInfo(@"C:\Test1.txt");
            i.Attributes = FileAttributes.System;
            i.Attributes = FileAttributes.Hidden;
            i.Attributes = FileAttributes.ReadOnly;
        }
        catch (Exception ex)
        {
            Console.Write(ex.ToString());
        }
    }
}


Banking establishments are more dangerous then standing armies.
AnswerRe: File Permission Pin
Luc Pattyn12-Sep-09 5:10
sitebuilderLuc Pattyn12-Sep-09 5:10 
AnswerRe: File Permission Pin
OriginalGriff12-Sep-09 5:22
mveOriginalGriff12-Sep-09 5:22 
GeneralRe: File Permission Pin
harold aptroot12-Sep-09 5:31
harold aptroot12-Sep-09 5:31 
GeneralRe: File Permission Pin
OriginalGriff12-Sep-09 5:41
mveOriginalGriff12-Sep-09 5:41 
GeneralRe: File Permission Pin
DarkSorrow3812-Sep-09 5:45
DarkSorrow3812-Sep-09 5:45 
GeneralRe: File Permission Pin
Luc Pattyn12-Sep-09 5:56
sitebuilderLuc Pattyn12-Sep-09 5:56 
QuestionLooking for calendar control like outlook 2007. Pin
hdv21212-Sep-09 3:25
hdv21212-Sep-09 3:25 
AnswerRe: Looking for calendar control like outlook 2007. Pin
Henry Minute12-Sep-09 5:25
Henry Minute12-Sep-09 5:25 
AnswerRe: Looking for calendar control like outlook 2007. Pin
April Fans22-Sep-09 16:12
April Fans22-Sep-09 16:12 
QuestionRegistry Editing Pin
DarkSorrow3812-Sep-09 2:54
DarkSorrow3812-Sep-09 2:54 
AnswerRe: Registry Editing Pin
Henry Minute12-Sep-09 3:28
Henry Minute12-Sep-09 3:28 
GeneralRe: Registry Editing Pin
DarkSorrow3812-Sep-09 3:50
DarkSorrow3812-Sep-09 3:50 
GeneralRe: Registry Editing Pin
Henry Minute12-Sep-09 5:20
Henry Minute12-Sep-09 5:20 
QuestionDataGridView Binding.(Takes along time to load) Pin
Said Ali Jalali12-Sep-09 2:47
Said Ali Jalali12-Sep-09 2:47 
AnswerRe: DataGridView Binding.(Takes along time to load) Pin
Henry Minute12-Sep-09 3:35
Henry Minute12-Sep-09 3:35 
QuestionUpdateProgress Pin
4anusha412-Sep-09 1:02
4anusha412-Sep-09 1:02 
AnswerRe: UpdateProgress Pin
Henry Minute12-Sep-09 1:53
Henry Minute12-Sep-09 1:53 

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.