Click here to Skip to main content
15,881,092 members
Home / Discussions / C#
   

C#

 
AnswerRe: Strange Behavior: base.OnPaint [Solved] Pin
Shameel6-Dec-09 23:14
professionalShameel6-Dec-09 23:14 
QuestionSerialization Pin
hadad6-Dec-09 4:26
hadad6-Dec-09 4:26 
AnswerRe: Serialization Pin
Natza Mitzi6-Dec-09 10:02
Natza Mitzi6-Dec-09 10:02 
QuestionDataGridview Drag and drop visualization Pin
anishkannan6-Dec-09 4:25
anishkannan6-Dec-09 4:25 
AnswerRe: DataGridview Drag and drop visualization Pin
Mycroft Holmes6-Dec-09 13:40
professionalMycroft Holmes6-Dec-09 13:40 
QuestionDraw resizeable and draggable rectangle on picturebox to crop image Pin
thungphan5-Dec-09 21:31
thungphan5-Dec-09 21:31 
AnswerRe: Draw resizeable and draggable rectangle on picturebox to crop image Pin
Luc Pattyn6-Dec-09 1:12
sitebuilderLuc Pattyn6-Dec-09 1:12 
QuestionUnusual behaviour with Directory.Exists() method Pin
Cracked-Down5-Dec-09 21:21
Cracked-Down5-Dec-09 21:21 
Hey all,
I came across one unusual behavior of Directory.Exists() method when I was testing user path input, I was trying with different inputs just to test the existence of the directory on my local drive. For negative test cases I provided the existing directory path and put two ".." at the end of directory path
e.g.
lets say I have "C:\CurrentDir" on my local drive

when I check the existence of directory using

bool isDirExist = Directory.Exists(@"C:\CurrentDir..");//".." are appended

surprisingly isDirExist is true OMG | :OMG:

when I try to access file contained in this directory it throws error......Mad | :mad:

it does not throw exception if I append only one "." [for @"C:\CurrentDir." +AnyFileName] WTF | :WTF:

Is this is bug in Directory.Exists method or anything else is happening behind the screen at OS level??
AnswerRe: Unusual behaviour with Directory.Exists() method Pin
N a v a n e e t h5-Dec-09 21:39
N a v a n e e t h5-Dec-09 21:39 
QuestionThe best method for designing a low profile client application Pin
SummerBulb5-Dec-09 21:13
SummerBulb5-Dec-09 21:13 
AnswerRe: The best method for designing a low profile client application Pin
N a v a n e e t h5-Dec-09 21:45
N a v a n e e t h5-Dec-09 21:45 
GeneralRe: The best method for designing a low profile client application Pin
SummerBulb5-Dec-09 22:02
SummerBulb5-Dec-09 22:02 
GeneralRe: The best method for designing a low profile client application Pin
N a v a n e e t h5-Dec-09 22:25
N a v a n e e t h5-Dec-09 22:25 
QuestionRe: The best method for designing a low profile client application [modified] Pin
SummerBulb5-Dec-09 22:38
SummerBulb5-Dec-09 22:38 
AnswerRe: The best method for designing a low profile client application Pin
N a v a n e e t h6-Dec-09 1:54
N a v a n e e t h6-Dec-09 1:54 
AnswerRe: The best method for designing a low profile client application Pin
Daniel Grunwald6-Dec-09 6:42
Daniel Grunwald6-Dec-09 6:42 
AnswerRe: The best method for designing a low profile client application Pin
PIEBALDconsult6-Dec-09 17:08
mvePIEBALDconsult6-Dec-09 17:08 
QuestionNewbie DatagridView Question Pin
kruegersck5-Dec-09 20:56
kruegersck5-Dec-09 20:56 
AnswerRe: Newbie DatagridView Question Pin
OriginalGriff5-Dec-09 21:46
mveOriginalGriff5-Dec-09 21:46 
QuestionConvert string to property name? Pin
BDJones5-Dec-09 18:39
BDJones5-Dec-09 18:39 
AnswerRe: Convert string to property name? Pin
N a v a n e e t h5-Dec-09 18:58
N a v a n e e t h5-Dec-09 18:58 
QuestionRe: Convert string to property name? Pin
BDJones5-Dec-09 19:34
BDJones5-Dec-09 19:34 
AnswerRe: Convert string to property name? Pin
N a v a n e e t h5-Dec-09 19:39
N a v a n e e t h5-Dec-09 19:39 
GeneralRe: Convert string to property name? Pin
BDJones6-Dec-09 5:12
BDJones6-Dec-09 5:12 
AnswerRe: Convert string to property name? Pin
PIEBALDconsult5-Dec-09 21:20
mvePIEBALDconsult5-Dec-09 21:20 

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.