Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / Design Time / June 2004

Tip: Looking for answers? Try searching our database.

ImageList Errors - What a crap!

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
*Herr Lucifer - 21 Jun 2004 16:38 GMT
Hi,

Whenever I add images to imagelist and running my application I
encounter this error:
-------
An unhandled exception of type
'System.Reflection.TargetInvocationException' occurred in mscorlib.dll
Additional information: Exception has been thrown by the target of an
invocation.

Then it highlights the following line in my application code:

Me.ImageList1.ImageStream =
CType(resources.GetObject("ImageList1.ImageStream"),
System.Windows.Forms.ImageListStreamer)
--------
Also, the value of  "Me.ImageList1.ImageStream"  is "Nothing".

I have looked up some Microsoft site for this, but couldn't really
solve this problem since it happens for images of every size .

Thanks in advance
---
OS = WinXP Pro
VS.Net 2003
Framework 1.1

PS: Where is all those.....Net Microsoft talked about? If they know
that DI cracks with so many exceptions, then why did they release
their product ? Doesn't any MS guy take responsibility for all these
mistakes?I have paid money for their product, you know?
Herfried K. Wagner [MVP] - 21 Jun 2004 17:14 GMT
* "*Herr Lucifer" <Herr__Luciferz@yahoo.com__> scripsit:
> Whenever I add images to imagelist and running my application I
> encounter this error:
[quoted text clipped - 20 lines]
> VS.Net 2003
> Framework 1.1

Do you use an application manifest to enable visual styles within the
IDE with "devenv.exe"?

Signature

Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/

*Herr Lucifer - 21 Jun 2004 18:03 GMT
Thanks a lot!
That was a really great help (I removed the manifest file.)
However, because XP style is extremely important for me in design
time, I need to view my applications appearance in their exact form
they will appear at run time in XP.
Why doesn't VS.NET support XP Style?

Thanks again,

> * "*Herr Lucifer" <Herr__Luciferz@yahoo.com__> scripsit:
> > Whenever I add images to imagelist and running my application I
[quoted text clipped - 28 lines]
> Herfried K. Wagner [MVP]
> <URL:http://dotnet.mvps.org/
Herfried K. Wagner [MVP] - 21 Jun 2004 18:47 GMT
* "*Herr Lucifer" <Herr__Luciferz@yahoo.com__> scripsit:
> That was a really great help (I removed the manifest file.)
> However, because XP style is extremely important for me in design
> time, I need to view my applications appearance in their exact form
> they will appear at run time in XP.
> Why doesn't VS.NET support XP Style?

Who knows ;-).  There isn't much difference between a form shown with
styles and without styles in matters of controls' size.  In VS 2005
"Whidbey", 'FlatStyle' set to 'Standard' will give a themed look in the
IDE too.

Signature

Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.