TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
merlin82
NA
4
0
Help me with ProgressBar!!!
Dec 22 2005 11:46 AM
Hi. I'm trying to make a ProgressBar which will show progress of loading an image from a web site. Here is a code I use right now to load this image. I know that I have to make a new thread but I don't know how to do it. Maybe some can help me in this?? Here is a code responsible for loading image: public Image GetImage(string sURL) { Stream str = null; HttpWebRequest wReq = (HttpWebRequest)WebRequest.Create(sURL); HttpWebResponse wRes = (HttpWebResponse)(wReq).GetResponse(); str = wRes.GetResponseStream(); return Image.FromStream(str); } And i'm using this to set an image to a PictureBox info.zdjecie.Image = info.GetImage(info.zdjecie.Tag.ToString()); I want a ProgressBar to work like in a broswer while loading a site.
Reply
Answers (
0
)
what is delegate in c#.net
How to create a simple addin for VS2003 in c#