G
Guest
I have added a ToolBar (toolBar) and an ImageList (ToolBarImageList) controls
to my Form, the ImageList has only 1 icon and the toolBar has only 1 button
with this icon.
The icon file is residing tin the project folder, and all looks fine in the
resource editor and compile ok.
But at runtime InitializeComponent() function fail at the following line:
this.ToolBarImageList.ImageStream =
((System.Windows.Forms.ImageListStreamer)(resources.GetObject("ToolBarImageList.ImageStream")));
It causes to exception throwing as follow:
"An unhandled exception of type
'System.Resources.MissingManifestResourceException' occurred in mscorlib.dll
Additional information: Could not find any resources appropriate for the
specified culture (or the neutral culture) in the given assembly. Make sure
"ViewerForm.resources" was correctly embedded or linked into assembly
"Viewer".
baseName: ViewerForm locationInfo: Logger.Viewer.ViewerForm resource file
name: ViewerForm.resources assembly: Viewer, Version=1.0.1937.22886,
Culture=neutral, PublicKeyToken=null"
I had the same problem when I tried to add an icon to the the Form itself to
appear at the left of the caption bar.
Can anybody tell me what this is happening?
to my Form, the ImageList has only 1 icon and the toolBar has only 1 button
with this icon.
The icon file is residing tin the project folder, and all looks fine in the
resource editor and compile ok.
But at runtime InitializeComponent() function fail at the following line:
this.ToolBarImageList.ImageStream =
((System.Windows.Forms.ImageListStreamer)(resources.GetObject("ToolBarImageList.ImageStream")));
It causes to exception throwing as follow:
"An unhandled exception of type
'System.Resources.MissingManifestResourceException' occurred in mscorlib.dll
Additional information: Could not find any resources appropriate for the
specified culture (or the neutral culture) in the given assembly. Make sure
"ViewerForm.resources" was correctly embedded or linked into assembly
"Viewer".
baseName: ViewerForm locationInfo: Logger.Viewer.ViewerForm resource file
name: ViewerForm.resources assembly: Viewer, Version=1.0.1937.22886,
Culture=neutral, PublicKeyToken=null"
I had the same problem when I tried to add an icon to the the Form itself to
appear at the left of the caption bar.
Can anybody tell me what this is happening?