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 / WinForm General / August 2006

Tip: Looking for answers? Try searching our database.

System.drawing bug?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Stanley Omega - 07 Aug 2006 07:56 GMT
Hello,

I have found that should i set the icon property of a form, it will often
only show up as the default icon. If i then restore down the form, the icon
shows properly. If i then maixmise the form the form icon shows but is very
large possibly 64*64 (its only a 16*16 on the file system). If i then close
the form system.drawing throws an error about not being able to access a
disposed object?

I look into the dissembly and the error occurs on a line with the
instruction "nop" in the base class dispose method.... but i cant debug into
it cause its in system.drawing?

How to debug? Is this a bug? etc

Thanks

stano
Herfried K. Wagner [MVP] - 07 Aug 2006 11:09 GMT
"Stanley Omega" <omega@giffdon.com> schrieb:
> I have found that should i set the icon property of a form, it will often
> only show up as the default icon. If i then restore down the form, the
> icon shows properly. If i then maixmise the form the form icon shows but
> is very large possibly 64*64 (its only a 16*16 on the file system). If i
> then close the form system.drawing throws an error about not being able to
> access a disposed object?

How did you create the icon file?

Signature

M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>

Stanley Omega - 08 Aug 2006 02:28 GMT
Hello Herfried,

I created some icons with Easy Icon Maker a shareware app.... but i have
tested also with icons created using VS2005. With icons created using vs2005
i dont get the enlarged size but i still get the system.drawing object
dsposed exception. I have checked the settings in Easy icon maker and the
icons were definitely 16*16 24bits. Sometimes the forms also "stutter" and
hang CPU useage goes up to 100 percent. But if i debug into it the code
always fails inside system.drawing so i can never get to the root of the
problem.

Do you think it may be the icon files still? If so do you have any links to
icon specifications for vs2005 and dotnet 2.0?

Thanks

stano

> "Stanley Omega" <omega@giffdon.com> schrieb:
>> I have found that should i set the icon property of a form, it will often
[quoted text clipped - 5 lines]
>
> How did you create the icon file?

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.