Click here to Skip to main content
15,887,416 members
Home / Discussions / C#
   

C#

 
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
GeneralRe: Resource files Pin
AB77719-Feb-06 3:37
AB77719-Feb-06 3:37 
GeneralRe: Resource files Pin
emran8349-Feb-06 3:53
emran8349-Feb-06 3:53 
GeneralRe: Resource files Pin
emran8349-Feb-06 3:59
emran8349-Feb-06 3:59 
QuestionIE Toolbar HELP !!!!! Pin
liquidthoughts9-Feb-06 0:36
liquidthoughts9-Feb-06 0:36 
Questioncommand line arguments Pin
Mridang Agarwalla9-Feb-06 0:02
Mridang Agarwalla9-Feb-06 0:02 
AnswerRe: command line arguments Pin
Ravi Bhavnani9-Feb-06 0:41
professionalRavi Bhavnani9-Feb-06 0:41 
GeneralRe: command line arguments Pin
Mridang Agarwalla9-Feb-06 1:01
Mridang Agarwalla9-Feb-06 1:01 
AnswerRe: command line arguments Pin
mav.northwind9-Feb-06 2:21
mav.northwind9-Feb-06 2:21 
GeneralRe: command line arguments Pin
Mridang Agarwalla9-Feb-06 7:16
Mridang Agarwalla9-Feb-06 7:16 
GeneralRe: command line arguments Pin
mav.northwind9-Feb-06 9:19
mav.northwind9-Feb-06 9:19 
Question"Safely Remove Hardware" USB Key? Pin
LiamD8-Feb-06 23:31
LiamD8-Feb-06 23:31 
AnswerRe: "Safely Remove Hardware" USB Key? Pin
Dave Kreskowiak9-Feb-06 7:31
mveDave Kreskowiak9-Feb-06 7:31 
Questionis it possible to load a excel range object into an system array Pin
thestonefox8-Feb-06 23:27
thestonefox8-Feb-06 23:27 
AnswerRe: is it possible to load a excel range object into an system array Pin
gumi_r@msn.com8-Feb-06 23:40
gumi_r@msn.com8-Feb-06 23:40 
Questionforcing to Stop Background Worker Pin
emran8348-Feb-06 23:25
emran8348-Feb-06 23:25 
AnswerRe: forcing to Stop Background Worker Pin
Ravi Bhavnani9-Feb-06 0:37
professionalRavi Bhavnani9-Feb-06 0:37 
GeneralRe: forcing to Stop Background Worker Pin
emran8349-Feb-06 0:56
emran8349-Feb-06 0:56 

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.