Custom control - System.Resources.MissingManifestResourceException

  • Thread starter Thread starter Mobile Boy 36
  • Start date Start date
M

Mobile Boy 36

Thanks Michael...
I succeed placing a custom picture button control on the toolbox.
The example on the website
http://www.codeppc.com/dotnet/createcontrol/createcontrol.htm
is complete. The Imagebuttoncontrol has an icon property.
Is use the control from within a Vb.net testform.

When I d'ont set the icon property, the button is working. Even the
click-event does work normal.
When assigning an .ico file to the icon property, I get an error:

An unhandled exception of type
'System.Resources.MissingManifestResourceException' occurred in mscorlib.dll
Additional information: MissingManifestResourceException

Any suggestions how to resolve this problem?

Best regards,
Mobile Boy
 
Can you post the code you are using to instantiate the icon and assign it?

Peter
 
Hi Peter,

I used the property Window to set the icon property.
Did you manage to set the icon property by code, without an error?
 
Hi, are you still having this problem? Could you please post the code
generated on the InitializeComponent method?

Thx
Fernando
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| From: "Mobile Boy 36" <[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| References: <[email protected]>
<[email protected]>
| Subject: Re: Custom control -
System.Resources.MissingManifestResourceException
| Date: Mon, 9 Feb 2004 11:19:23 +0100
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Lines: 57
| Message-ID: <[email protected]>
| Organization: -= Belgacom Usenet Service =-
| NNTP-Posting-Host: 194.78.50.218
| X-Trace:
DXC=_1T2]51oWZ<216alMSh5V8i98m_9@L0l71XhdhRZ;<475B2jXLYJSc=jeW?\eJ;S=<1I8`Z3
0Bc66jW7kVU09F<7
| X-Complaints-To: (e-mail address removed)
| Path:
cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.su
l.t-online.de!t-online.de!skynet.be!skynet.be!louie!tjb!not-for-mail
| Xref: cpmsftngxa07.phx.gbl
microsoft.public.dotnet.framework.compactframework:45281
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| Hi Peter,
|
| I used the property Window to set the icon property.
| Did you manage to set the icon property by code, without an error?
|
|
| | > Can you post the code you are using to instantiate the icon and assign
it?
| >
| > Peter
| >
| > --
| > Peter Foot
| > Windows Embedded MVP
| > OpenNETCF.org Senior Advisor
| > www.inthehand.com | www.opennetcf.org
| >
| > | > > Thanks Michael...
| > > I succeed placing a custom picture button control on the toolbox.
| > > The example on the website
| > > http://www.codeppc.com/dotnet/createcontrol/createcontrol.htm
| > > is complete. The Imagebuttoncontrol has an icon property.
| > > Is use the control from within a Vb.net testform.
| > >
| > > When I d'ont set the icon property, the button is working. Even the
| > > click-event does work normal.
| > > When assigning an .ico file to the icon property, I get an error:
| > >
| > > An unhandled exception of type
| > > 'System.Resources.MissingManifestResourceException' occurred in
| > mscorlib.dll
| > > Additional information: MissingManifestResourceException
| > >
| > > Any suggestions how to resolve this problem?
| > >
| > > Best regards,
| > > Mobile Boy
| > >
| > >
| > > | > > > Thanks for your answers! I have found an article which describes how
| to
| > > create a control.
| > > > It's in french, but that doesn't matter
| > > >
| > > > http://www.codeppc.com/dotnet/createcontrol/createcontrol.htm
| > >
| > >
| > >
| >
| >
|
|
|
 
Back
Top