Click here to Skip to main content
15,921,793 members
Home / Discussions / C#
   

C#

 
GeneralRe: Best way to accomplish... Pin
Vega026-Jan-05 15:33
Vega026-Jan-05 15:33 
GeneralRe: Best way to accomplish... Pin
Matt Newman6-Jan-05 16:31
Matt Newman6-Jan-05 16:31 
GeneralRe: Best way to accomplish... Pin
Vega026-Jan-05 16:54
Vega026-Jan-05 16:54 
GeneralRe: Best way to accomplish... Pin
leppie6-Jan-05 20:27
leppie6-Jan-05 20:27 
Generalclear viewstate when postback Pin
esakal6-Jan-05 14:38
esakal6-Jan-05 14:38 
GeneralRe: clear viewstate when postback Pin
Heath Stewart6-Jan-05 14:52
protectorHeath Stewart6-Jan-05 14:52 
GeneralAngry DBA Pin
Anonymous6-Jan-05 14:26
Anonymous6-Jan-05 14:26 
GeneralImageList - MissingMainfest exception Pin
Christian Graus6-Jan-05 12:24
protectorChristian Graus6-Jan-05 12:24 
I have an imagelist, created in the IDE, and it generated this code for me :

this.imageList.ImageSize = new System.Drawing.Size(23, 23);
this.imageList.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList.ImageStream")));
this.imageList.TransparentColor = System.Drawing.Color.Lime;

the second line generates this error:

+ System.SystemException {"Could not find any resources appropriate for the specified culture (or the neutral culture) in the given assembly. Make sure \"DetailsActions.resources\" was correctly embedded or linked into assembly \"RDC\".\r\nbaseName: DetailsActions locationInfo: RDC.DetailsActions resource file name: DetailsActions.resources assembly: RDC, Version=1.0.1035.19142, Culture=neutral, PublicKeyToken=null"} System.SystemException

Now, I don't see any way to make the images or the image list build into the assembly, but I don't think that's the problem. I've found some stuff on google, but nothing that's been suggested has helped.

The resourceSets property on the resource object is 0. That is created like this :

System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(DetailsActions));

The details actions class is in a subfolder called controls, I've tried adding controls to the path. This project was actually in VB.NET, I just converted it using a tool, but the VB.NET code looks the same to me, and it works.

My default namespace for the project is RDC, the root namespace of the project. Any suggestions anyone can offer are truly appreciated.

Christian

I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
GeneralRe: ImageList - MissingMainfest exception Pin
Heath Stewart6-Jan-05 13:16
protectorHeath Stewart6-Jan-05 13:16 
GeneralRe: ImageList - MissingMainfest exception Pin
Christian Graus6-Jan-05 13:24
protectorChristian Graus6-Jan-05 13:24 
GeneralRe: ImageList - MissingMainfest exception Pin
Christian Graus6-Jan-05 13:49
protectorChristian Graus6-Jan-05 13:49 
GeneralRe: ImageList - MissingMainfest exception Pin
Heath Stewart6-Jan-05 13:59
protectorHeath Stewart6-Jan-05 13:59 
GeneralRe: ImageList - MissingMainfest exception Pin
Christian Graus6-Jan-05 14:08
protectorChristian Graus6-Jan-05 14:08 
GeneralRe: ImageList - MissingMainfest exception Pin
Heath Stewart6-Jan-05 14:49
protectorHeath Stewart6-Jan-05 14:49 
GeneralRe: ImageList - MissingMainfest exception Pin
Christian Graus6-Jan-05 14:54
protectorChristian Graus6-Jan-05 14:54 
GeneralRe: ImageList - MissingMainfest exception Pin
Heath Stewart6-Jan-05 15:00
protectorHeath Stewart6-Jan-05 15:00 
GeneralRe: ImageList - MissingMainfest exception Pin
Christian Graus6-Jan-05 15:07
protectorChristian Graus6-Jan-05 15:07 
GeneralRe: ImageList - MissingMainfest exception Pin
Heath Stewart6-Jan-05 15:48
protectorHeath Stewart6-Jan-05 15:48 
GeneralRe: ImageList - MissingMainfest exception Pin
Christian Graus6-Jan-05 21:21
protectorChristian Graus6-Jan-05 21:21 
GeneralRe: ImageList - MissingMainfest exception Pin
Heath Stewart7-Jan-05 5:49
protectorHeath Stewart7-Jan-05 5:49 
GeneralRe: ImageList - MissingMainfest exception Pin
Christian Graus7-Jan-05 10:46
protectorChristian Graus7-Jan-05 10:46 
GeneralRe: ImageList - MissingMainfest exception Pin
Russell Morris7-Jan-05 3:42
Russell Morris7-Jan-05 3:42 
GeneralRe: ImageList - MissingMainfest exception Pin
Heath Stewart7-Jan-05 5:50
protectorHeath Stewart7-Jan-05 5:50 
GeneralRe: ImageList - MissingMainfest exception Pin
Andy Brummer7-Jan-05 5:59
sitebuilderAndy Brummer7-Jan-05 5:59 
Generalsimple chat........ Pin
Sakkijha6-Jan-05 10:17
Sakkijha6-Jan-05 10:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.