Click here to Skip to main content
15,884,388 members
Home / Discussions / C#
   

C#

 
GeneralRe: my program works very slow Pin
Erdinc273-Mar-11 5:09
Erdinc273-Mar-11 5:09 
Questionhow to programing Microsoft Management Console ?? Pin
GREG_DORIANcod28-Feb-11 4:58
professionalGREG_DORIANcod28-Feb-11 4:58 
AnswerRe: how to programing Microsoft Management Console ?? Pin
Eddy Vluggen28-Feb-11 6:02
professionalEddy Vluggen28-Feb-11 6:02 
AnswerRe: how to programing Microsoft Management Console ?? Pin
RaviRanjanKr28-Feb-11 17:09
professionalRaviRanjanKr28-Feb-11 17:09 
Questionaccessing folder from project Pin
jashimu28-Feb-11 4:37
jashimu28-Feb-11 4:37 
AnswerRe: accessing folder from project Pin
OriginalGriff28-Feb-11 5:30
mveOriginalGriff28-Feb-11 5:30 
GeneralRe: accessing folder from project Pin
jashimu28-Feb-11 7:03
jashimu28-Feb-11 7:03 
GeneralRe: accessing folder from project Pin
Tony Richards28-Feb-11 7:51
Tony Richards28-Feb-11 7:51 
I think I understand the problem.

If you don't specify an absolute file path, the .Net will try and find the image relative to your current program, hence moving the bitmaps solved the problem.

If you don't want the images in the same folder as your program, the simplest solution is to specify their absolute path (e.g. c:\Folder\myImage.bmp)

If you do want the images to be kept in your program folder, and they are part of your VS project, make sure their Copy To Output Directory property (right click the file, select properties) is set to Copy Always or Copy If Newer.
GeneralRe: accessing folder from project [modified] Pin
OriginalGriff28-Feb-11 8:41
mveOriginalGriff28-Feb-11 8:41 
GeneralRe: accessing folder from project Pin
Luc Pattyn28-Feb-11 9:04
sitebuilderLuc Pattyn28-Feb-11 9:04 
GeneralRe: accessing folder from project Pin
OriginalGriff28-Feb-11 9:26
mveOriginalGriff28-Feb-11 9:26 
AnswerRe: accessing folder from project Pin
Luc Pattyn28-Feb-11 9:34
sitebuilderLuc Pattyn28-Feb-11 9:34 
AnswerRe: accessing folder from project Pin
OriginalGriff28-Feb-11 9:36
mveOriginalGriff28-Feb-11 9:36 
GeneralRe: accessing folder from project Pin
Luc Pattyn28-Feb-11 9:42
sitebuilderLuc Pattyn28-Feb-11 9:42 
QuestionCombobox large Data Pin
sanforjackass28-Feb-11 4:22
sanforjackass28-Feb-11 4:22 
AnswerRe: Combobox large Data Pin
Blue_Boy28-Feb-11 4:25
Blue_Boy28-Feb-11 4:25 
AnswerRe: Combobox large Data Pin
Ian Shlasko28-Feb-11 4:28
Ian Shlasko28-Feb-11 4:28 
GeneralRe: Combobox large Data Pin
sanforjackass28-Feb-11 4:34
sanforjackass28-Feb-11 4:34 
GeneralRe: Combobox large Data Pin
Ian Shlasko28-Feb-11 4:42
Ian Shlasko28-Feb-11 4:42 
GeneralRe: Combobox large Data Pin
sanforjackass28-Feb-11 4:52
sanforjackass28-Feb-11 4:52 
GeneralRe: Combobox large Data Pin
Ian Shlasko28-Feb-11 4:54
Ian Shlasko28-Feb-11 4:54 
GeneralRe: Combobox large Data Pin
Dave Kreskowiak28-Feb-11 8:55
mveDave Kreskowiak28-Feb-11 8:55 
GeneralRe: Combobox large Data Pin
darkelv1-Mar-11 22:23
darkelv1-Mar-11 22:23 
GeneralRe: Combobox large Data Pin
Pete O'Hanlon28-Feb-11 4:43
mvePete O'Hanlon28-Feb-11 4:43 
AnswerRe: Combobox large Data Pin
Eddy Vluggen28-Feb-11 4:29
professionalEddy Vluggen28-Feb-11 4:29 

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.