473,951 Members | 60,526 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to add image files to .resx

Hello,

According to my C# book, I can add a .resx file to my
project by going to the Project menu, Add New/Assembly
Resource File... I want to add 6 icon files, one.ico,
two.ico...six.i co. I got as far as adding the
Resource1.resx file. I now see a table like thing with
the titlel "Data for data". So how do I add my ico files
to this table? I see the xml page. Do I have to manually
type in the ico files? And before I do that do I need to
add the ico files to my project by right-clicking on the
solution explorer/add existing item? Eventually, I want
to use the Resource Manager to use these resources. How
do I set this up?

Thanks,
Steve
Nov 16 '05 #1
3 14752
The Resource editor that comes with VS .Net isn't all that powerful. You'll
need a 3rd party ResX editor. There're a lot of free resx editors available
on the internet...

http://www.only4gurus.com/v2/preview.asp?ID=4791 is a good start

-vJ

"Steve" <an*******@disc ussions.microso ft.com> wrote in message
news:83******** *************** *****@phx.gbl.. .
Hello,

According to my C# book, I can add a .resx file to my
project by going to the Project menu, Add New/Assembly
Resource File... I want to add 6 icon files, one.ico,
two.ico...six.i co. I got as far as adding the
Resource1.resx file. I now see a table like thing with
the titlel "Data for data". So how do I add my ico files
to this table? I see the xml page. Do I have to manually
type in the ico files? And before I do that do I need to
add the ico files to my project by right-clicking on the
solution explorer/add existing item? Eventually, I want
to use the Resource Manager to use these resources. How
do I set this up?

Thanks,
Steve

Nov 16 '05 #2
Thanks for your reply. Now I feel better with the
solution that I came up with - which is to create my own
resource file from a separate program using the
resourcewriter. This seems to work fine. I just thought
I was reinventing the wheel doing it this way. I guess
not.

Thanks
-----Original Message-----
The Resource editor that comes with VS .Net isn't all that powerful. You'llneed a 3rd party ResX editor. There're a lot of free resx editors availableon the internet...

http://www.only4gurus.com/v2/preview.asp?ID=4791 is a good start
-vJ

"Steve" <an*******@disc ussions.microso ft.com> wrote in messagenews:83******* *************** ******@phx.gbl. ..
Hello,

According to my C# book, I can add a .resx file to my
project by going to the Project menu, Add New/Assembly
Resource File... I want to add 6 icon files, one.ico,
two.ico...six.i co. I got as far as adding the
Resource1.resx file. I now see a table like thing with
the titlel "Data for data". So how do I add my ico files to this table? I see the xml page. Do I have to manually type in the ico files? And before I do that do I need to add the ico files to my project by right-clicking on the
solution explorer/add existing item? Eventually, I want
to use the Resource Manager to use these resources. How
do I set this up?

Thanks,
Steve

.

Nov 16 '05 #3
Well if you want something real hardcode how about base64 encoding your
image files and then pasting it into the .resx file. You can find a
reference post on base64 encoding here,
http://weblogs.asp.net/sjoseph/archi...02/224586.aspx

;) ;)

Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph

Steve wrote:
Hello,

According to my C# book, I can add a .resx file to my
project by going to the Project menu, Add New/Assembly
Resource File... I want to add 6 icon files, one.ico,
two.ico...six.i co. I got as far as adding the
Resource1.resx file. I now see a table like thing with
the titlel "Data for data". So how do I add my ico files
to this table? I see the xml page. Do I have to manually
type in the ico files? And before I do that do I need to
add the ico files to my project by right-clicking on the
solution explorer/add existing item? Eventually, I want
to use the Resource Manager to use these resources. How
do I set this up?

Thanks,
Steve

Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1944
by: Stijn Goris | last post by:
hi all, A user can upload maximum 10 image files at once. When the user only uploads 6 images, 4 fileboxes are left blank. I use function checkImage() //check the the extension. Must be a jpeg { $bool = 0; $this->type = $_FILES; if ($this->type == "image/pjpeg" || $this->type == "image/jpg")
0
3381
by: Hari Prasad | last post by:
Hi, I have downloaded some image files by connecting to a URL and I am trying open that image file using BrowserLauncher. I am using windows xp and the default one to open image files is windows picture and Fax Viewer. I could not see the image in Internet Explorer when I am trying to open the image files. But when I set in the properties of image files from "windows picture and Fax Viewer" to "Open with internet Explorer", I could see...
3
2907
by: Veetold | last post by:
I have a problem with displaying image files (jpg) on my report. I got a solution from Larry Linson (Microsoft Access MVP) for which I'm grateful, but I still don't exactly know how to link an image control with the specific file - all information: path name, file name and file extention are included in one field of each record in the report source table (data of this shape: \\server_name\folder_name\file_name.jpg). Any help appreciated....
1
2712
by: Veetold | last post by:
The solution you suggested works very good - thanks again. I encountered a new problem related to this topic. According to your advise I put the following line to print and format event: Me.BookCover.Picture = IIf(Me.IsCover= true, Me.BookCoverPath, "") to avoid problems when the file specified in field does not exist I add a logical field to source table: indicating physical presence of the file. Surprisingly when there is no file ...
1
6908
by: Dev | last post by:
Dear Friends, I am passing the image name, size (in bytes) and imgaeformat (like jpg or bmp or pdf) through the network. I want display the image into picturebox without saving image files into Hard disk. Just display the image into PictureBox.... Is it Possible? If so how do to this?
2
318
by: Ryan Moore | last post by:
I am creating a site that has an "Uploads" directory where users can upload image files (let's say .jpgs and .gifs). When a user uploads an image, the system creates a directory within this "Uploads" directory to place their image in. What I would like to do is protect the ENTIRE uploads directory so a user cannot navigate directly to http://mysite/uploads/2/img.jpg without logging into the site first (I'm using forms authentication). I'm...
5
1601
by: jcrouse | last post by:
I saw an article, once, on how to package image file in the installer so they are not accessible to the end user. I want to say hidden, but I don't just mean the file attribute of the image file. Does anyone know of the article I'm speaking of or a link on how to embed (another poor choice of words) the image files in the executable? Thanks, John
3
1312
by: Andre | last post by:
I'm writing a web-app which needs some javascript (my own) to be executed locally. This app can load local pages or remote ones; however I have a concern about potentially malicious code in remote files. (it would be easy to write javascript code that would make my web-app do nasty things :-( For remote pages, I can strip embedded <script>...</scriptas well as <script src="..."/before displaying it in the web app. However, I am...
5
2355
by: ivowel | last post by:
dear css experts: I have some TIFF images of text articles. I would love to be able to use the "Find" feature in my browser to a particular word in the text, and to have hrefs in the document be clickable. Acrobat Acrobat can do this for pdf documents, but I would love to stick to tiff or gif or some other plain browser format. my OCR software gives me the exact location of each word, so I have the raw information necessary. now,...
0
10172
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9992
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11602
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
11195
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
11371
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10703
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6353
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4554
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3559
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.