469,328 Members | 1,265 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,328 developers. It's quick & easy.

How do we load an image file into a picturebox in code ?

C.K
How do I load an image file , e.g.

C:\images\img1.jpg

into a PictureBox, but in code ?

Tia
C.K
Nov 21 '05 #1
14 20254
* "C.K" <assdadad> scripsit:
How do I load an image file , e.g.

C:\images\img1.jpg

into a PictureBox, but in code ?


\\\
Me.PictureBox1.Image = Image.FromFile("C:\foo.bmp")
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #2
A complete overview how to set an image in a imagebox

http://msdn.microsoft.com/library/de...imagetopic.asp

I hope this helps?

Cor
Nov 21 '05 #3
PictureBox1.Image = Image.FromFile("C:\myFile.???")
--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me

Time flies when you don't know what you're doing

"C.K" <assdadad> wrote in message
news:uK**************@TK2MSFTNGP11.phx.gbl...
How do I load an image file , e.g.

C:\images\img1.jpg

into a PictureBox, but in code ?

Tia
C.K

Nov 21 '05 #4
Your message came really late this time Terry

Cor
Nov 21 '05 #5
Ha Ha, I just wanted to do a Herfired in reverse, I knew you would spot that
!

LOL

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me

Time flies when you don't know what you're doing

"Cor Ligthert" <no**********@planet.nl> wrote in message
news:Ot*************@TK2MSFTNGP12.phx.gbl...
Your message came really late this time Terry

Cor

Nov 21 '05 #6
* "Cor Ligthert" <no**********@planet.nl> scripsit:
Your message came really late this time Terry


Do you have a problem with that? I don't.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #7
>
Do you have a problem with that? I don't.


Beg your pardon, and should that be of any interest.

Calling me a spammer in the other thread and telling that you will throw me
out of this newsgroup in the same way as you did with Fergus Cooney shows
exactly what OHM all the time is telling, I did not believe it, however he
is right.



Nov 21 '05 #8
C.K
Thanks to all, you are really helping me a lot.
C.K
"Cor Ligthert" <no**********@planet.nl> wrote in message
news:eU**************@TK2MSFTNGP14.phx.gbl...
A complete overview how to set an image in a imagebox

http://msdn.microsoft.com/library/de...imagetopic.asp
I hope this helps?

Cor

Nov 21 '05 #9
* "Cor Ligthert" <no**********@planet.nl> scripsit:
Do you have a problem with that? I don't.


Beg your pardon, and should that be of any interest.

Calling me a spammer in the other thread and telling that you will throw me
out of this newsgroup in the same way as you did with Fergus Cooney shows
exactly what OHM all the time is telling, I did not believe it, however he
is right.


I don't kick out anybody. I didn't kick out Fergus Cooney. He kicked
out himself. You are welcome, but I'd like that you stop making stupid
comments about me and some other people in the group.

But however, I think that there are more interesting questions to be
answered and more interesting topics to be discussed.

EOT

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #10
>
I don't kick out anybody. I didn't kick out Fergus Cooney. He kicked
out himself. You are welcome, but I'd like that you stop making stupid
comments about me and some other people in the group.

But however, I think that there are more interesting questions to be
answered and more interesting topics to be discussed.


You can not make a thread EOT insulting me that I make stupid comments about
other poeple in this newsgroups.

When you find that I do that to you, you are free to have that idea and as
well to tell that to me in the thread where that is. You have a very long
time my email adress so that cannot be the problem, however you can do that
as well here, I often have openly excused me to you when I did something
wrong. However in this case it is not me who is wrong.

But I did not see you ever give an exucuse to anybody in this newsgroup even
not when there was very much abuse in your messages.

Nov 21 '05 #11
Cor,

Where is this thread that Herfried was supposed to have insulted you?
This I have to see.

I have known you two to spar on occasion but nothing like this.

I guess it is the genius thing .... all that brain power and talent
between you guys that just causes an explosion of epic proportions
because the universe can't handle it. :)

C'mon guys........kiss and make up. :)

This group needs you both.
"Cor Ligthert" <no**********@planet.nl> wrote in message
news:Ow**************@TK2MSFTNGP12.phx.gbl:

I don't kick out anybody. I didn't kick out Fergus Cooney. He kicked
out himself. You are welcome, but I'd like that you stop making
stupid
comments about me and some other people in the group.

But however, I think that there are more interesting questions to be
answered and more interesting topics to be discussed.


You can not make a thread EOT insulting me that I make stupid comments
about
other poeple in this newsgroups.

When you find that I do that to you, you are free to have that idea and
as
well to tell that to me in the thread where that is. You have a very
long
time my email adress so that cannot be the problem, however you can do
that
as well here, I often have openly excused me to you when I did something
wrong. However in this case it is not me who is wrong.

But I did not see you ever give an exucuse to anybody in this newsgroup
even
not when there was very much abuse in your messages.


Nov 21 '05 #12
Kelly,

I am not that brain or genius as you describe, however I full agree with
your words.

Why making war in this newsgroup, let us only try to improve ourselfs and
let us help each other with that.

Cor
Nov 21 '05 #13
* "scorpion53061" <ad***@nospamherekjmsolutions.com> scripsit:
C'mon guys........kiss and make up. :)
LOL!
This group needs you both.


ACK.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #14
That's right!!

Make Love Not War......

Well maybe not THAT far but you get the idea.

"Cor Ligthert" <no**********@planet.nl> wrote in message
news:Ov**************@TK2MSFTNGP12.phx.gbl:
Kelly,

I am not that brain or genius as you describe, however I full agree with
your words.

Why making war in this newsgroup, let us only try to improve ourselfs
and
let us help each other with that.

Cor


Nov 21 '05 #15

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

15 posts views Thread by Anand Ganesh | last post: by
3 posts views Thread by user | last post: by
4 posts views Thread by Bob | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by Purva khokhar | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.