|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Windows Default DirectoriesIf I was pointing my app to a particular directory, I would just use:
"C:\Whatever\" But - If I want my app to use one of the Windows default directories (Desktop, MyDocuments), since they can be different, depending on which operating system, so how can I define this in code (like - Desktop)? "Elmo Watson" <sput***@yahoo.com> schrieb: Check out 'System.Environment.GetFolderPath'.> But - If I want my app to use one of the Windows default directories > (Desktop, MyDocuments), since they can be different, depending on which > operating system, so how can I define this in code (like - Desktop)? -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://dotnet.mvps.org/dotnet/faqs/> Using event variables (i.e. %Systemroot% for C:\Windows or \Winnt in
2000) would work well also. Elmo Watson wrote: Show quoteHide quote > If I was pointing my app to a particular directory, I would just use: > "C:\Whatever\" > > But - If I want my app to use one of the Windows default directories > (Desktop, MyDocuments), since they can be different, depending on which > operating system, so how can I define this in code (like - Desktop)?
Attach handlers to ToolStripMenuItems. Got stacked, Please Help
MDI gets FormClosing but non-Child forms also open do not. Query based on user input C# help!!! Challenge? [De-]Serialise a class derived from DataTable. Multithread Design Question Memory by user Sorting a datagrigview Getting an application to be on top of other applications Treeview - relative position |
|||||||||||||||||||||||