473,396 Members | 2,154 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

C# app does not load image list resources

It throws an exception when executing the line below.

this.smallIconsIL.ImageStream =
((System.Windows.Forms.ImageListStreamer)(resource s.GetObject("smallIconsIL.
ImageStream")));

The exception reads "Unhandled Exception:
System.Resources.MissingManifestResourceException: Could not find any
resources appropriate for the specified culture (or the neutral culture) in
the given assembly. Make sure "appName.resources" was correctly embedded or
linked into assembly 'appName'." What gives? My image is was set up with
the form editor. What am I doing wrong?
----------
Will Pittenger
E-Mail: mailto:wi************@verizon.net
All mail filtered by Qurb (www.qurb.com)
Nov 15 '05 #1
2 8963
> The exception reads "Unhandled Exception:
System.Resources.MissingManifestResourceException: Could not find any
resources appropriate for the specified culture (or the neutral culture) in the given assembly. Make sure "appName.resources" was correctly embedded or linked into assembly 'appName'." What gives? My image is was set up with
the form editor. What am I doing wrong?


this exception is usually caused by putting the other classes BEFORE the
form class in the source file. it means that you can't have

public class A { ... }
public class myForm : Form { ... }

in the source file. you have to change it to

public class myForm : Form { ... }
public class A { ... }

I hope this helps you.
Regards, Wiktor Zychla

Nov 15 '05 #2
I did add something before the form class, but that was an enum. I assume
that would also trigger the problem? I also assume you are talking about
two classes in the same file as there is no #include directive. (I am a
C++/MFC person and only started with C# last month.)
----------
Will Pittenger
E-Mail: mailto:wi************@verizon.net
All mail filtered by Qurb (www.qurb.com)
"Wiktor Zychla" <ie****@microsoft.com.no.spam> wrote in message
news:ej**************@TK2MSFTNGP12.phx.gbl...
The exception reads "Unhandled Exception:
System.Resources.MissingManifestResourceException: Could not find any
resources appropriate for the specified culture (or the neutral culture)

in
the given assembly. Make sure "appName.resources" was correctly embedded

or
linked into assembly 'appName'." What gives? My image is was set up with the form editor. What am I doing wrong?


this exception is usually caused by putting the other classes BEFORE the
form class in the source file. it means that you can't have

public class A { ... }
public class myForm : Form { ... }

in the source file. you have to change it to

public class myForm : Form { ... }
public class A { ... }

I hope this helps you.
Regards, Wiktor Zychla

Nov 15 '05 #3

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

Similar topics

1
by: Laszlo Zsolt Nagy | last post by:
I would like to load image from a directory right into an image list. I wrote a simple library that loads the images in the directory and resizes them as needed before adding to the wx.ImageList....
1
by: Ronny | last post by:
Hi, When ever I use image lists in a tree view the image list is behaving inconsistent. When I add images they first look good and clean, after I have close and open the code in the IDE the...
1
by: Marco Gerlach | last post by:
Hello, on one of our customers servers we get following error on first ASPX-page: An error occurred while try to load the string resources (GetModuleHandle failed with error -2147023888) ...
1
by: Kevin B. Campisi | last post by:
Hi There, I'm really stuck on this one and any help would be GREATLY appreciated. I've got an ASP.net application, that initially, gives me the following error: Login failed for user...
2
by: Manny Chohan | last post by:
HI Guys, I need to load image in table cell from codebehind. i have the following code: TableRow tRow = new TableRow(); Table2.Rows.Add(tRow); TableCell tCell1= new TableCell(); if...
4
by: Mark | last post by:
Hi I notice that in some cases, to get an icon, an object (for example a list view) uses an image list, in others (e.g. a form) the image is selected from the project resources, i.e. a file. ...
3
by: grzegorz.gazda | last post by:
Hi all Is there any limit of images which can be added to a image list. I have a problem with this control. I added an image list in design mode and I am adding images using code. Then I want to...
0
by: SumaYoga | last post by:
Hello, I have a image list with some images from png files. I have used imagelist.Draw function to draw the images. I have the same images on a picture controls. After I run the aplicaiton ...
6
by: ghjk | last post by:
I store images using one of my web pages. Next I want to load image from the db and pass the value to ajax page. Other values got correctly. But didn't get image.This is my code. php page. When...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...
0
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.