Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Compact Framework / January 2006

Tip: Looking for answers? Try searching our database.

Load image into picture box from URL?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tomppa - 10 Jan 2006 02:31 GMT
Using CE 5.0, CF 2.0, C#

How do I do the equevelant in the CF?

Stream ImageStream = new WebClient().OpenRead(URL);
System.Drawing.Image img = System.Drawing.Image.FromStream(ImageStream);

picCover.Width = img.Width;

picCover.Height = img.Height;

picCover.Image = img;

Thanks
Ilya Tumanov [MS] - 10 Jan 2006 02:44 GMT
http://groups.google.com/group/microsoft.public.dotnet.framework.compactframewor
k/browse_frm/thread/415e611b56e71f3c/f9fb444665eaf955?q=image+url+picturebox&rnu
m=8#f9fb444665eaf955


Image.FromStream(stream) is replaced by new Bitmap(stream)

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

*** Want to find answers instantly? Here's how... ***

1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactfra
mework?hl=en

2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).

> Using CE 5.0, CF 2.0, C#
>
[quoted text clipped - 10 lines]
>
> Thanks
Tomppa - 10 Jan 2006 03:17 GMT
Ilya - perfect Thanks!

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.