Click here to Skip to main content
15,896,481 members
Home / Discussions / C#
   

C#

 
QuestionConvert file extension to mime type Pin
Uwe Keim9-Feb-06 3:48
sitebuilderUwe Keim9-Feb-06 3:48 
QuestionC# TreeView Pin
2dS9-Feb-06 3:45
2dS9-Feb-06 3:45 
AnswerRe: C# TreeView Pin
Andy Moore9-Feb-06 5:28
Andy Moore9-Feb-06 5:28 
GeneralRe: C# TreeView Pin
2dS9-Feb-06 20:09
2dS9-Feb-06 20:09 
QuestionHow to open large database? Pin
Pius__X9-Feb-06 3:10
Pius__X9-Feb-06 3:10 
AnswerRe: How to open large database? Pin
Colin Angus Mackay9-Feb-06 3:26
Colin Angus Mackay9-Feb-06 3:26 
AnswerRe: How to open large database? Pin
Le centriste9-Feb-06 4:20
Le centriste9-Feb-06 4:20 
AnswerRe: How to open large database? Pin
emran8349-Feb-06 10:26
emran8349-Feb-06 10:26 
QuestionWizard; Hiding a WizardStep Pin
ZeedijkMike9-Feb-06 3:00
ZeedijkMike9-Feb-06 3:00 
Questionabout axwebbrowser Pin
smr859-Feb-06 2:40
smr859-Feb-06 2:40 
Questiontext box & GO button Pin
Kola Sokol9-Feb-06 1:43
Kola Sokol9-Feb-06 1:43 
AnswerRe: text box & GO button Pin
Judah Gabriel Himango9-Feb-06 5:27
sponsorJudah Gabriel Himango9-Feb-06 5:27 
GeneralRe: text box & GO button Pin
Kola Sokol9-Feb-06 7:36
Kola Sokol9-Feb-06 7:36 
GeneralRe: text box & GO button Pin
Kola Sokol9-Feb-06 8:08
Kola Sokol9-Feb-06 8:08 
QuestionReflection -VectorClass :System.IO.FileNotFoundException Pin
sasire189-Feb-06 1:34
sasire189-Feb-06 1:34 
Question!= Operator Cant be applied Error Pin
emran8349-Feb-06 1:01
emran8349-Feb-06 1:01 
AnswerRe: != Operator Cant be applied Error Pin
Le centriste9-Feb-06 1:38
Le centriste9-Feb-06 1:38 
GeneralRe: != Operator Cant be applied Error Pin
emran8349-Feb-06 2:05
emran8349-Feb-06 2:05 
GeneralRe: != Operator Cant be applied Error Pin
Le centriste9-Feb-06 2:08
Le centriste9-Feb-06 2:08 
QuestionResource files Pin
AB77719-Feb-06 0:55
AB77719-Feb-06 0:55 
AnswerRe: Resource files Pin
emran8349-Feb-06 1:10
emran8349-Feb-06 1:10 
GeneralRe: Resource files Pin
AB77719-Feb-06 1:25
AB77719-Feb-06 1:25 
GeneralRe: Resource files Pin
emran8349-Feb-06 2:00
emran8349-Feb-06 2:00 
GeneralRe: Resource files Pin
AB77719-Feb-06 2:12
AB77719-Feb-06 2:12 
GeneralRe: Resource files Pin
emran8349-Feb-06 3:32
emran8349-Feb-06 3:32 
Ok,
I am explaining the second method.

=>When you select the picture box in design mode, you see an black arrow on top of the control, right ? click that, you see the following options,
- Choose Image
- Size Mode
- Dock in parent Container.

=> Ok, so Choose Image.
=> Now you have 2 options,
- Local Resource,
- Project Resource File.

Click on Project Resource File Radio Button,
then Click Import,
Choose a picture and then click Ok.

Now, note that, the picture you added has been added in Project Resource file. Now if you click that black arrow again and choose another picture for the same picturebox, the previous image is not deleted from the project resource, it is still there.
Now, you do the same process again and again for all the pictures you want to add in your project resource.

When you are ready with all the pictures you wanted to add, you can use the code I gave you to load any picture from project resource. I am giving you the code again,

this.pictureBoxName.Image = global::projectName.Properties.Resources.original_picture_name; (without extension...) you dont need to type the name of the picture. When you follow the intellisence of the Visual C# Editor, you will see the picture name after typing
this.pictureBoxName.Image = global::projectName.Properties.Resources.

Ok, The picturebox you used to import all these picture in Project Resource is not the only picturebox who can load these resource images. Any other picture box will be able to load these images with the code I mentioned.

May be it is very inefficient way, but it is working for me very nice.

Let me know if still this method not working..

Emran

-- modified at 9:33 Thursday 9th February, 2006

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.