Click here to Skip to main content
15,915,086 members
Home / Discussions / C#
   

C#

 
GeneralRe: Maximum value display.... Pin
greendragons12-Sep-09 7:38
greendragons12-Sep-09 7:38 
GeneralRe: Maximum value display.... Pin
dan!sh 12-Sep-09 7:53
professional dan!sh 12-Sep-09 7:53 
GeneralRe: Maximum value display.... Pin
greendragons12-Sep-09 8:02
greendragons12-Sep-09 8:02 
AnswerRe: Maximum value display.... Pin
Luc Pattyn12-Sep-09 8:10
sitebuilderLuc Pattyn12-Sep-09 8:10 
GeneralRe: Maximum value display.... Pin
greendragons12-Sep-09 8:18
greendragons12-Sep-09 8:18 
AnswerRe: Maximum value display.... Pin
Luc Pattyn12-Sep-09 8:27
sitebuilderLuc Pattyn12-Sep-09 8:27 
QuestionHow to get a dictionary for word translations? Pin
Shaunr8812-Sep-09 5:42
Shaunr8812-Sep-09 5:42 
AnswerRe: How to get a dictionary for word translations? Pin
Richard MacCutchan12-Sep-09 5:52
mveRichard MacCutchan12-Sep-09 5:52 
GeneralRe: How to get a dictionary for word translations? Pin
Shaunr8812-Sep-09 6:07
Shaunr8812-Sep-09 6:07 
GeneralRe: How to get a dictionary for word translations? Pin
Jayapal Chandran12-Sep-09 10:54
Jayapal Chandran12-Sep-09 10:54 
QuestionAccess Pin
sanforjackass12-Sep-09 5:35
sanforjackass12-Sep-09 5:35 
AnswerRe: Access Pin
Henry Minute12-Sep-09 5:37
Henry Minute12-Sep-09 5:37 
GeneralRe: Access Pin
sanforjackass12-Sep-09 5:47
sanforjackass12-Sep-09 5:47 
GeneralRe: Access Pin
Henry Minute12-Sep-09 5:59
Henry Minute12-Sep-09 5:59 
GeneralRe: Access Pin
sanforjackass12-Sep-09 6:06
sanforjackass12-Sep-09 6:06 
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 

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.