Click here to Skip to main content
15,914,780 members
Home / Discussions / C#
   

C#

 
AnswerRe: Methods of a collection class are not always called Pin
Pete O'Hanlon11-Mar-12 20:01
mvePete O'Hanlon11-Mar-12 20:01 
GeneralRe: Methods of a collection class are not always called Pin
CDP180212-Mar-12 0:07
CDP180212-Mar-12 0:07 
GeneralRe: Methods of a collection class are not always called Pin
Pete O'Hanlon12-Mar-12 0:43
mvePete O'Hanlon12-Mar-12 0:43 
AnswerRe: Methods of a collection class are not always called Pin
Bernhard Hiller11-Mar-12 21:18
Bernhard Hiller11-Mar-12 21:18 
GeneralRe: Methods of a collection class are not always called Pin
CDP180212-Mar-12 0:27
CDP180212-Mar-12 0:27 
QuestionExport to Excel - DropDownList Pin
Andrew Woodward11-Mar-12 10:12
Andrew Woodward11-Mar-12 10:12 
Questioninsert image in datagrid Pin
MemberDotNetting11-Mar-12 9:06
MemberDotNetting11-Mar-12 9:06 
AnswerRe: insert image in datagrid Pin
OriginalGriff11-Mar-12 9:41
mveOriginalGriff11-Mar-12 9:41 
That is probably because you aren't specifying one.
"Valide.png" does not have any path information, so it will be looked for in the current folder - which is likely to be the one the original EXE was run from, unless it has been changed in the meantime.

I would strongly suggest that you specify the path, at least relative to where the EXE started:
C#
string appPath = Path.GetDirectoryName(Application.ExecutablePath);
If your image file is in a floder below that, add the folder name on, and you should be able to get to your file.
Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water

GeneralRe: insert image in datagrid Pin
MemberDotNetting12-Mar-12 7:09
MemberDotNetting12-Mar-12 7:09 
Questioncombobox Pin
MemberDotNetting11-Mar-12 4:42
MemberDotNetting11-Mar-12 4:42 
AnswerRe: combobox Pin
Ravi Bhavnani11-Mar-12 5:12
professionalRavi Bhavnani11-Mar-12 5:12 
GeneralRe: combobox Pin
MemberDotNetting11-Mar-12 5:45
MemberDotNetting11-Mar-12 5:45 
GeneralRe: combobox Pin
OriginalGriff11-Mar-12 6:17
mveOriginalGriff11-Mar-12 6:17 
GeneralRe: combobox Pin
MemberDotNetting11-Mar-12 6:29
MemberDotNetting11-Mar-12 6:29 
GeneralRe: combobox Pin
OriginalGriff11-Mar-12 6:51
mveOriginalGriff11-Mar-12 6:51 
GeneralRe: combobox Pin
MemberDotNetting11-Mar-12 6:59
MemberDotNetting11-Mar-12 6:59 
AnswerRe: combobox Pin
OriginalGriff11-Mar-12 5:12
mveOriginalGriff11-Mar-12 5:12 
GeneralRe: combobox Pin
Ravi Bhavnani11-Mar-12 5:14
professionalRavi Bhavnani11-Mar-12 5:14 
GeneralRe: combobox Pin
OriginalGriff11-Mar-12 5:21
mveOriginalGriff11-Mar-12 5:21 
GeneralRe: combobox Pin
MemberDotNetting11-Mar-12 5:43
MemberDotNetting11-Mar-12 5:43 
GeneralRe: combobox Pin
OriginalGriff11-Mar-12 5:52
mveOriginalGriff11-Mar-12 5:52 
GeneralRe: combobox Pin
MemberDotNetting11-Mar-12 6:03
MemberDotNetting11-Mar-12 6:03 
GeneralRe: combobox Pin
OriginalGriff11-Mar-12 6:14
mveOriginalGriff11-Mar-12 6:14 
GeneralRe: combobox Pin
MemberDotNetting11-Mar-12 6:19
MemberDotNetting11-Mar-12 6:19 
GeneralRe: combobox Pin
MemberDotNetting11-Mar-12 6:25
MemberDotNetting11-Mar-12 6:25 

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.