Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 2.0 and Visual Studio. 2005 > .NET Framework 2.0
|
.NET Framework 2.0 For discussion of the Microsoft .NET Framework 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Framework 2.0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 6th, 2007, 05:04 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 224
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to ashu_from_india Send a message via Yahoo to ashu_from_india
Default how to read Bitmap from Resource file

hi all,

i hv added a Bitmap file in my .NET 2005 project
how can i display tht Bitmap image in a PictureBox?



 
Old July 6th, 2007, 05:11 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Take a look here:

http://Imar.Spaanjaars.Com/QuickDocId.aspx?quickdoc=168

It's targeted at a Pocket PC application on .NET 1.1, but the same principles apply in .NET 2

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
 
Old July 6th, 2007, 05:54 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 224
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to ashu_from_india Send a message via Yahoo to ashu_from_india
Default

thnx imar for ur quick reply
i did it this way:

ResourceManager ResMgr = new ResourceManager(typeof(MyGridView.Properties.Resou rces));
Object obj;
Bitmap bitmap;

obj = ResMgr.GetObject("MyImage");
bitmap = (Bitmap)obj;








Similar Threads
Thread Thread Starter Forum Replies Last Post
Reading Text file from Resource folder balesh.mind ASP.NET 3.5 Basics 1 November 14th, 2008 06:54 AM
read bitmap pixel ersantombalak VB How-To 2 February 13th, 2007 07:20 AM
Resource File kk_kumar99 Beginning VB 6 3 October 23rd, 2006 04:32 AM
How can we use a resource file in vb.net Amrit ADO.NET 2 April 11th, 2005 02:46 PM
Read bitmap image? RichardRose C# 3 October 9th, 2004 11:45 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.