Ahhh
Ok....I've messed about a bit, and copied the icon from a
different
form, and then added the line of code (which made me shiver)
into the
initialisecomponents bit....close the form, save
it....reopen it
and....bobs your uncle...it's there.
Thanks very much for everyone getting me to this point.
Now comes the real question....which is only slightly
pathetic.....what
if I want to change the icon on the basis of the
(localisation) language
setting.
-----Original Message-----
From: Discussion of advanced .NET topics.
[mailto:ADVANCED-DOTNET DISCUSS.DEVELOP.COM] On Behalf Of Peter
Ritchie
Sent: 30 November 2007 16:15
To: ADVANCED-DOTNET DISCUSS.DEVELOP.COM
Subject: Re: [ADVANCED-DOTNET] pathetic and infuriating
problem....
When you click on the Icon property you're setting it, so it
asks what
file to use. It doesn't support selecting an icon from
resources (don't
know why), if that's what you're asking. As far as I know
you can only
replace the existing icon in the resources; the Form
designer always
stores the form icon as $this.Icon, meaning it only supports
one icon
per
form resource.
If you want to select different icons at run-time then
you'll have to
store the icons elsewhere (like Properties/Resources) the
designer
doesn't
really support manually editing a form's resx file. (it
supports editing
it; but it doesn't support keeping resources it doesn't know
about when
it
adds/removes form resources).
On Fri, 30 Nov 2007 16:15:31 -0000, Nicholls, Mark
<Nicholls.Mark MTVNE.COM> wrote:
>I HAVE found the blasted thing.....UI's are not my
strong point....
>
>But how does the icon property work in the property page
in the
>ide.....it just seems to want me to find an .ico
file.....but if the
>icon is in the resource file then what do I do?
===================================
This list is hosted by DevelopMentor(r) http://www.develop.com
View archives and manage your subscription(s) at
http://discuss.develop.com
===================================
This list is hosted by DevelopMentorŪ http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|