473,549 Members | 2,616 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ImageList & Win98

Hello,

I created an application (Windows Forms) with a form and an imagelist.
Everything works fine under WinXP, but when I try to start the app on
Win98, the following error is returned:
Quote:
System.Reflecti on.TargetInvoca tionException: Exception
has been thrown by the target of an invocation. ---> System
InvalidOperatio nException: Failed to load ImageList.
at System.Windows. Forms.ImageList Streamer..ctor( SerializationIn fo info,
StreamingContex t context)
--- End of inner exception stack trace ---
at System.Reflecti on.RuntimeConst ructorInfo.Seri alizationInvoke (Object
target, SerializationIn fo info, StreamingContex t context)
at System.Runtime. Serialization.O bjectManager
CompleteISerial izableObject(Ob ject obj, SerializationIn fo info,
StreamingContex t context)
at System.Runtime. Serialization.O bjectManager
FixupSpecialObj ect(ObjectHolde r holder)
at System.Runtime. Serialization.O bjectManager.Do Fixups()
at System.Runtime. Serialization.F ormatters.Binar y.ObjectReader
Deserialize(Hea derHandler handler, __BinaryParser serParser, Boolean fCheck,
IMethodCallMess age methodCallMessa ge)
at System.Runtime. Serialization.F ormatters.Binar y.BinaryFormatt er
Deserialize(Str eam serializationSt ream, HeaderHandler handler, Boolean
fCheck, IMethodCallMess age methodCallMessa ge)
at System.Runtime. Serialization.F ormatters.Binar y.BinaryFormatt er
Deserialize(Str eam serializationSt ream)
at System.Resource s.ResourceReade r.LoadObject(In t32 pos)
at System.Resource s.RuntimeResour ceSet.GetObject (String key, Boolean
ignoreCase)
at System.Resource s.ResourceManag er.GetObject(St ring name, CultureInfo
culture)
at System.Resource s.ResourceManag er.GetObject(St ring name)
at KBS.fmControleP ermiss.Initiali zeComponent()
at KBS.fmControleP ermiss..ctor()
at KBS.fmGrupo.But ton3Click(Objec t sender, EventArgs e)
The problematic line is:

Me.imageList1.I mageStream = _
CType(resources .GetObject("ima geList1.ImageSt ream"), _
System.Windows. Forms.ImageList Streamer)
It's a #develop project. How to prevent this?
Thanks in advance,

Stefan
--
_______________ _______________ _____www.VBTric ks.de.vu
the free resource for Visual Basic, Gambas and Pascal
components, tips & complete projects

www: http://www.VBTricks.de.vu
mail: vbtricks <at> gmx <dot> net
_______________ _______________ _______________ ________
Nov 21 '05 #1
1 1235
Hello,

there seems to be no other way than to add the images manually from a
resource.

Thanks anyway,

Stefan

--
_______________ _______________ _____www.VBTric ks.de.vu
the free resource for Visual Basic, Gambas and Pascal
components, tips & complete projects

www: http://www.VBTricks.de.vu
mail: vbtricks <at> gmx <dot> net
_______________ _______________ _______________ ________
Nov 21 '05 #2

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

Similar topics

17
8321
by: thinkfirst | last post by:
Hello CIWAH ... I want to propose full internationalization of three related websites: http://africadatabase.org/ http://people.africadatabase.org/ http://institutions.africadatabase.org/ My role is mainly advisory and server management. I have very little to do with content or page generation, so it's not something I can do myself -- I...
4
1426
by: - Dazed | last post by:
If a user is using a combination of Win98 & any version of MSIE, I want to display a message. The best that I can do is the following: <? if ((strstr (getenv('HTTP_USER_AGENT'), 'MSIE')) && (strstr (getenv('HTTP_USER_AGENT'), '98'))) { echo"blah,blah,blah\n"; } ?>
0
1591
by: Macadair | last post by:
I develop mid-range multi-user applications for a large site. Currently Win98 and Office97 are the standards used however we are slowly moving to WinXP. Due to the site upgrade cost, we are staying with Office97 for a little longer. This means we will have Win98 and WinXP PC's running Access97. When I compile an Access97 application...
0
1271
by: Dave Harris | last post by:
We have a piece of code located in an unmanged C++ function that is currently bleeding a GDI each time it is run. We have tried numerous things, each with its own problems. We made pImageList a static (and threw it in a gcroot) and commented out the dispose because the system would crash or hang after a few hundered iterations (we could...
2
8509
by: Sanjeeva Reddy | last post by:
hai Anti Keskinen, i have used the following code MyListView->LargeImageList->ImageSize = gcnew System::Drawing::Size(100, 100); // Sets large image size to 100, 100 here i am getting error like "gcnew is undeclared error",how to deeclare 'gcnew" and when i am using in runtime to change the size of images in imagelist in listview control...
4
4315
by: David | last post by:
I have a problem that just cropped up with using an ImageList in my project I am using VB .NET 200 Problem: I have existing Form with 2 Image List controls. ImageList16 (for 16x16 Images) and ImageList24 (for 24x24). I have inserted images in each and it has worked fine for months... The System.Drawing.Bitmap properties for these images are...
2
1264
by: Hawk | last post by:
private void RetreiveVirtualItem( object sender, RetrieveVirtualItemEventArgs e ) { e.Item = new ListViewItem( e.ItemIndex.ToString() ); } Take this for example; works fine. Now if I want to associate a image with the item I would use a different constructor and pass a string image key.
1
8472
by: John Devlon | last post by:
Hi, Does anyone know how to assign an image from an imagelist to a picturebox ? How do dynamicly change the picture to another image of the imagelist ? Thanx John
0
3184
by: Phil Stanton | last post by:
I am using a Treeview type menu sustem and need to load various icons I have a form called Icons with a MSComctlLib.ImageListCtrl.2 control on it called ImList The IconTable holds IconNo and IconName I use the following code OnOpen of the form which is supposed to load images stored in a folder which is defined by CoIconPath
0
7451
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...
0
7720
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. ...
0
7959
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...
1
7473
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...
0
6044
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5369
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5088
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3483
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1061
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.