Click here to Skip to main content
16,017,922 members
Home / Discussions / C#
   

C#

 
AnswerRe: bool values and radiobuttons Pin
originSH24-Jul-07 4:05
originSH24-Jul-07 4:05 
QuestionRe: bool values and radiobuttons Pin
tthellebuyck24-Jul-07 4:13
tthellebuyck24-Jul-07 4:13 
QuestionDatagrid basics Pin
imnotso#24-Jul-07 3:22
imnotso#24-Jul-07 3:22 
QuestionTextBox.Clear() won't clear column that it Bind to. Pin
kakarato24-Jul-07 3:09
kakarato24-Jul-07 3:09 
AnswerRe: TextBox.Clear() won't clear column that it Bind to. Pin
Le centriste24-Jul-07 3:38
Le centriste24-Jul-07 3:38 
AnswerRe: TextBox.Clear() won't clear column that it Bind to. Pin
Justin Perez24-Jul-07 3:41
Justin Perez24-Jul-07 3:41 
QuestionC# Directories whilst debugging in visual studio Pin
[d]eljay24-Jul-07 3:09
[d]eljay24-Jul-07 3:09 
AnswerRe: C# Directories whilst debugging in visual studio Pin
Colin Angus Mackay24-Jul-07 3:18
Colin Angus Mackay24-Jul-07 3:18 
[d]eljay wrote:
hus I cannot use "current_dir" as the basis for any other directories. (Imagee, for example).


If you mean "My Pictures" then you might want to look at Environment.GetFolder() [I think - I don't quite remember off the top of my head]

Anyway, that will allow you to supply an enumerator called SpecialFolders which includes things like the Windows directory, MyDocuments and so on (they are not all called something obvious - read the docs to see what they all mean, or create a quick console application and see what they return). The result of the method call is a string giving the path to the folder you requested.

Also, you shouldn't rely on relative paths for anything outside of your control. Folder names can be renamed or set up differently on each computer. So, if you install some software and create a subdirectory with files in it then that is fine to refer to it relative to the current directory, but not otherwise.


Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...

"I wouldn't say boo to a goose. I'm not a coward, I just realise that it would be largely pointless."


My website

GeneralRe: C# Directories whilst debugging in visual studio Pin
[d]eljay24-Jul-07 5:16
[d]eljay24-Jul-07 5:16 
GeneralRe: C# Directories whilst debugging in visual studio Pin
Colin Angus Mackay25-Jul-07 10:31
Colin Angus Mackay25-Jul-07 10:31 
AnswerRe: C# Directories whilst debugging in visual studio Pin
martin_hughes24-Jul-07 3:25
martin_hughes24-Jul-07 3:25 
GeneralRe: C# Directories whilst debugging in visual studio Pin
Colin Angus Mackay24-Jul-07 3:31
Colin Angus Mackay24-Jul-07 3:31 
GeneralRe: C# Directories whilst debugging in visual studio Pin
martin_hughes24-Jul-07 4:09
martin_hughes24-Jul-07 4:09 
GeneralRe: C# Directories whilst debugging in visual studio Pin
Brady Kelly24-Jul-07 5:30
Brady Kelly24-Jul-07 5:30 
GeneralRe: C# Directories whilst debugging in visual studio Pin
[d]eljay24-Jul-07 5:18
[d]eljay24-Jul-07 5:18 
GeneralRe: C# Directories whilst debugging in visual studio Pin
Brady Kelly24-Jul-07 5:24
Brady Kelly24-Jul-07 5:24 
AnswerRe: C# Directories whilst debugging in visual studio Pin
Luc Pattyn24-Jul-07 5:31
sitebuilderLuc Pattyn24-Jul-07 5:31 
GeneralRe: C# Directories whilst debugging in visual studio Pin
[d]eljay24-Jul-07 5:51
[d]eljay24-Jul-07 5:51 
GeneralRe: C# Directories whilst debugging in visual studio Pin
Luc Pattyn24-Jul-07 6:11
sitebuilderLuc Pattyn24-Jul-07 6:11 
GeneralDynamic adding, editing & deleting data from a datagrid Pin
AmitVikramSingh24-Jul-07 2:41
AmitVikramSingh24-Jul-07 2:41 
Questiona detour around an "input-synchronous call" Pin
Gjsonke24-Jul-07 2:15
Gjsonke24-Jul-07 2:15 
QuestionSerialize a web serive into a c# class Pin
buzzby24-Jul-07 1:52
buzzby24-Jul-07 1:52 
AnswerRe: Serialize a web serive into a c# class Pin
BoneSoft24-Jul-07 3:52
BoneSoft24-Jul-07 3:52 
AnswerRe: Serialize a web serive into a c# class Pin
MidwestLimey24-Jul-07 4:13
professionalMidwestLimey24-Jul-07 4:13 
QuestionUsing SMTP for sending emails Pin
sandman8824-Jul-07 1:47
sandman8824-Jul-07 1:47 

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.