Click here to Skip to main content
15,923,083 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionRemoting issue Pin
Siddharth Rastogi8-May-08 22:58
Siddharth Rastogi8-May-08 22:58 
AnswerRe: Remoting issue Pin
CodingYoshi9-May-08 12:18
CodingYoshi9-May-08 12:18 
QuestionHow to find argument type (in] [out] using reflection? Pin
fizk8-May-08 22:11
fizk8-May-08 22:11 
QuestionSocket is closed before all buffered data is transmitted Pin
realbobb8-May-08 20:54
realbobb8-May-08 20:54 
AnswerRe: Socket is closed before all buffered data is transmitted Pin
CodingYoshi9-May-08 13:57
CodingYoshi9-May-08 13:57 
GeneralRe: Socket is closed before all buffered data is transmitted Pin
realbobb12-May-08 21:06
realbobb12-May-08 21:06 
Question"?xml namespace="" prefix="asp" ?" in .NET 2005 Pin
salon8-May-08 4:39
salon8-May-08 4:39 
QuestionGet the proper path name, proper case I mean. Pin
AndrewVos8-May-08 3:38
AndrewVos8-May-08 3:38 
I'm looking for a way to get the proper path name, for example if I have:

"c:\\program files"

I would expect "C:\\Program Files".

Any ideas?

I'm using the code below now, but the use of GetFileSystemInfos is going to be a performance problem some time...

<br />
          private string fixPathName(string path) {<br />
               string[] pathParts = path.Split(Path.DirectorySeparatorChar);<br />
<br />
               string fixedPath = null;<br />
               for (int index = 0; index < pathParts.Length; index++) {<br />
                    string pathPart = pathParts[index];<br />
<br />
                    if (index == 0) {<br />
                         fixedPath = pathPart;<br />
                         fixedPath = Path.GetFullPath(fixedPath);<br />
                    } else {<br />
                         fixedPath = Path.Combine(fixedPath, pathPart);<br />
                         DirectoryInfo parent = Directory.GetParent(fixedPath);<br />
                         FileSystemInfo[] paths = parent.GetFileSystemInfos(Path.GetFileName(fixedPath));<br />
                         string pathProperName = paths[0].FullName;<br />
                         fixedPath = pathProperName;<br />
                    }<br />
               }<br />
               return fixedPath;<br />
          }<br />




www.wickedorange.com
www.andrewvos.com

AnswerRe: Get the proper path name, proper case I mean. Pin
Dave Kreskowiak8-May-08 4:59
mveDave Kreskowiak8-May-08 4:59 
GeneralRe: Get the proper path name, proper case I mean. Pin
AndrewVos8-May-08 5:14
AndrewVos8-May-08 5:14 
AnswerRe: Get the proper path name, proper case I mean. Pin
Dave Kreskowiak8-May-08 5:32
mveDave Kreskowiak8-May-08 5:32 
GeneralRe: Get the proper path name, proper case I mean. Pin
AndrewVos8-May-08 5:39
AndrewVos8-May-08 5:39 
GeneralRe: Get the proper path name, proper case I mean. Pin
AndrewVos8-May-08 6:12
AndrewVos8-May-08 6:12 
Questiongetting input from user Pin
raydona7-May-08 8:11
raydona7-May-08 8:11 
AnswerRe: getting input from user Pin
Dave Kreskowiak7-May-08 8:42
mveDave Kreskowiak7-May-08 8:42 
Questionhow to use SetWindowLong API function calling in Vb.net Pin
brams77-May-08 4:04
brams77-May-08 4:04 
AnswerRe: how to use SetWindowLong API function calling in Vb.net Pin
Dave Kreskowiak7-May-08 7:12
mveDave Kreskowiak7-May-08 7:12 
GeneralRe: how to use SetWindowLong API function calling in Vb.net Pin
brams77-May-08 10:33
brams77-May-08 10:33 
GeneralRe: how to use SetWindowLong API function calling in Vb.net Pin
Dave Kreskowiak7-May-08 10:57
mveDave Kreskowiak7-May-08 10:57 
GeneralRe: how to use SetWindowLong API function calling in Vb.net Pin
brams79-May-08 4:40
brams79-May-08 4:40 
GeneralRe: how to use SetWindowLong API function calling in Vb.net Pin
Dave Kreskowiak9-May-08 5:44
mveDave Kreskowiak9-May-08 5:44 
QuestionLooking for something that replaces the event DataGridView.SelectionChanging Pin
Shimmy Weitzhandler6-May-08 12:21
Shimmy Weitzhandler6-May-08 12:21 
AnswerRe: Looking for something that replaces the event DataGridView.SelectionChanging Pin
Shimmy Weitzhandler6-May-08 12:57
Shimmy Weitzhandler6-May-08 12:57 
Question[Message Deleted] Pin
Macorina6-May-08 10:41
Macorina6-May-08 10:41 
AnswerCross Post. Please ignore Pin
Pete O'Hanlon6-May-08 10:56
mvePete O'Hanlon6-May-08 10:56 

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.