PC Review


Reply
Thread Tools Rate Thread

Application Icon in Control Box

 
 
Paul Stork
Guest
Posts: n/a
 
      9th Sep 2004
I'm stumped. I'm trying to replace the default ICON on a vb .net compact
Framework form. I've got a 32X32 .ico file that has the graphic I want to
use. I've tried several versions at different color depths. All show fine in
designer when I set the ICON property of the form. But none of them show
correctly when I run the App.

I've also tried setting the ICON for the form in code by loading the .ico as
an embedded resource. It loads fine and the form says that the icon
property is pointing to the icon when I run debug, but the default icon
still shows in the form. Any ideas? I've done this in regular VB, but can't
get it to work in Compact Framework.

--
Paul Papanek Stork
MBA, CTT+, MCT, MCSE+I, MCSA, MCAD, MCDBA
Solutient of Ohio, INC.
email: pstork <<at>> solutient.com
visit ME at: <<http://info.cwru.edu/pstork/>>



 
Reply With Quote
 
 
 
 
Chris Tacke, eMVP
Guest
Posts: n/a
 
      9th Sep 2004
Form icons are 16x16, so you need to add the 16x16 version to your ICO file.

-Chris


"Paul Stork >solutient.com>" <pstork<<at> wrote in message
news:(E-Mail Removed)...
> I'm stumped. I'm trying to replace the default ICON on a vb .net compact
> Framework form. I've got a 32X32 .ico file that has the graphic I want to
> use. I've tried several versions at different color depths. All show fine

in
> designer when I set the ICON property of the form. But none of them show
> correctly when I run the App.
>
> I've also tried setting the ICON for the form in code by loading the .ico

as
> an embedded resource. It loads fine and the form says that the icon
> property is pointing to the icon when I run debug, but the default icon
> still shows in the form. Any ideas? I've done this in regular VB, but

can't
> get it to work in Compact Framework.
>
> --
> Paul Papanek Stork
> MBA, CTT+, MCT, MCSE+I, MCSA, MCAD, MCDBA
> Solutient of Ohio, INC.
> email: pstork <<at>> solutient.com
> visit ME at: <<http://info.cwru.edu/pstork/>>
>
>
>



 
Reply With Quote
 
Paul Stork
Guest
Posts: n/a
 
      9th Sep 2004
Actually, There's already a 16X16 included in the icon file to be used on
the StartMenu. But I pulled that out to a seperate .ico file and still
can't get it to show in the control box of the form. It's fine during
design mode, but the default icon is all that shows at runtime.

--
Paul Papanek Stork
MBA, CTT+, MCT, MCSE+I, MCSA, MCAD, MCDBA
Solutient of Ohio, INC.
email: pstork <<at>> solutient.com
visit ME at: <<http://info.cwru.edu/pstork/>>


"Chris Tacke, eMVP" <(E-Mail Removed)> wrote in message
news:%23y$(E-Mail Removed)...
> Form icons are 16x16, so you need to add the 16x16 version to your ICO
> file.
>
> -Chris
>
>
> "Paul Stork >solutient.com>" <pstork<<at> wrote in message
> news:(E-Mail Removed)...
>> I'm stumped. I'm trying to replace the default ICON on a vb .net compact
>> Framework form. I've got a 32X32 .ico file that has the graphic I want to
>> use. I've tried several versions at different color depths. All show fine

> in
>> designer when I set the ICON property of the form. But none of them show
>> correctly when I run the App.
>>
>> I've also tried setting the ICON for the form in code by loading the .ico

> as
>> an embedded resource. It loads fine and the form says that the icon
>> property is pointing to the icon when I run debug, but the default icon
>> still shows in the form. Any ideas? I've done this in regular VB, but

> can't
>> get it to work in Compact Framework.
>>
>> --
>> Paul Papanek Stork
>> MBA, CTT+, MCT, MCSE+I, MCSA, MCAD, MCDBA
>> Solutient of Ohio, INC.
>> email: pstork <<at>> solutient.com
>> visit ME at: <<http://info.cwru.edu/pstork/>>
>>
>>
>>

>
>



 
Reply With Quote
 
Alex Feinman [MVP]
Guest
Posts: n/a
 
      9th Sep 2004
Hmm. I wonder if you could try sending WM_SETICON message with the icon
handle

--
Alex Feinman
---
Visit http://www.opennetcf.org
"Paul Stork >solutient.com>" <pstork<<at> wrote in message
news:(E-Mail Removed)...
> Actually, There's already a 16X16 included in the icon file to be used on
> the StartMenu. But I pulled that out to a seperate .ico file and still
> can't get it to show in the control box of the form. It's fine during
> design mode, but the default icon is all that shows at runtime.
>
> --
> Paul Papanek Stork
> MBA, CTT+, MCT, MCSE+I, MCSA, MCAD, MCDBA
> Solutient of Ohio, INC.
> email: pstork <<at>> solutient.com
> visit ME at: <<http://info.cwru.edu/pstork/>>
>
>
> "Chris Tacke, eMVP" <(E-Mail Removed)> wrote in message
> news:%23y$(E-Mail Removed)...
>> Form icons are 16x16, so you need to add the 16x16 version to your ICO
>> file.
>>
>> -Chris
>>
>>
>> "Paul Stork >solutient.com>" <pstork<<at> wrote in message
>> news:(E-Mail Removed)...
>>> I'm stumped. I'm trying to replace the default ICON on a vb .net compact
>>> Framework form. I've got a 32X32 .ico file that has the graphic I want
>>> to
>>> use. I've tried several versions at different color depths. All show
>>> fine

>> in
>>> designer when I set the ICON property of the form. But none of them show
>>> correctly when I run the App.
>>>
>>> I've also tried setting the ICON for the form in code by loading the
>>> .ico

>> as
>>> an embedded resource. It loads fine and the form says that the icon
>>> property is pointing to the icon when I run debug, but the default icon
>>> still shows in the form. Any ideas? I've done this in regular VB, but

>> can't
>>> get it to work in Compact Framework.
>>>
>>> --
>>> Paul Papanek Stork
>>> MBA, CTT+, MCT, MCSE+I, MCSA, MCAD, MCDBA
>>> Solutient of Ohio, INC.
>>> email: pstork <<at>> solutient.com
>>> visit ME at: <<http://info.cwru.edu/pstork/>>
>>>
>>>
>>>

>>
>>

>
>



 
Reply With Quote
 
Paul Stork
Guest
Posts: n/a
 
      9th Sep 2004
I haven't tried that. However, I did notice that none of the programs I
looked at on my Pocket PC now have their own Icons. They all use the start
button icon. Even things like Pocket Word and Pocket Excel. I'm beginning
to think that it's not possible short of overriding the paint event.

--
Paul Papanek Stork
MBA, CTT+, MCT, MCSE+I, MCSA, MCAD, MCDBA
Solutient of Ohio, INC.
email: pstork <<at>> solutient.com
visit ME at: <<http://info.cwru.edu/pstork/>>


"Alex Feinman [MVP]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hmm. I wonder if you could try sending WM_SETICON message with the icon
> handle
>
> --
> Alex Feinman
> ---
> Visit http://www.opennetcf.org
> "Paul Stork >solutient.com>" <pstork<<at> wrote in message
> news:(E-Mail Removed)...
>> Actually, There's already a 16X16 included in the icon file to be used on
>> the StartMenu. But I pulled that out to a seperate .ico file and still
>> can't get it to show in the control box of the form. It's fine during
>> design mode, but the default icon is all that shows at runtime.
>>
>> --
>> Paul Papanek Stork
>> MBA, CTT+, MCT, MCSE+I, MCSA, MCAD, MCDBA
>> Solutient of Ohio, INC.
>> email: pstork <<at>> solutient.com
>> visit ME at: <<http://info.cwru.edu/pstork/>>
>>
>>
>> "Chris Tacke, eMVP" <(E-Mail Removed)> wrote in message
>> news:%23y$(E-Mail Removed)...
>>> Form icons are 16x16, so you need to add the 16x16 version to your ICO
>>> file.
>>>
>>> -Chris
>>>
>>>
>>> "Paul Stork >solutient.com>" <pstork<<at> wrote in message
>>> news:(E-Mail Removed)...
>>>> I'm stumped. I'm trying to replace the default ICON on a vb .net
>>>> compact
>>>> Framework form. I've got a 32X32 .ico file that has the graphic I want
>>>> to
>>>> use. I've tried several versions at different color depths. All show
>>>> fine
>>> in
>>>> designer when I set the ICON property of the form. But none of them
>>>> show
>>>> correctly when I run the App.
>>>>
>>>> I've also tried setting the ICON for the form in code by loading the
>>>> .ico
>>> as
>>>> an embedded resource. It loads fine and the form says that the icon
>>>> property is pointing to the icon when I run debug, but the default icon
>>>> still shows in the form. Any ideas? I've done this in regular VB, but
>>> can't
>>>> get it to work in Compact Framework.
>>>>
>>>> --
>>>> Paul Papanek Stork
>>>> MBA, CTT+, MCT, MCSE+I, MCSA, MCAD, MCDBA
>>>> Solutient of Ohio, INC.
>>>> email: pstork <<at>> solutient.com
>>>> visit ME at: <<http://info.cwru.edu/pstork/>>
>>>>
>>>>
>>>>
>>>
>>>

>>
>>

>
>



 
Reply With Quote
 
Chris Tacke, eMVP
Guest
Posts: n/a
 
      9th Sep 2004
*now* it's coming to me what you're saying! Under PPC, the Forms don't
actually have an icon - the form itself has no caption area (use Spy++ or
GetWindowLong(GWL_STYLE...) if you don't believe me). The title bar and
icon are a separate element in PPC, and the icon *is* the "start menu". I
don't believe it's (easily) changeable.

-Chris


"Paul Stork >solutient.com>" <pstork<<at> wrote in message
news:%232%(E-Mail Removed)...
> I haven't tried that. However, I did notice that none of the programs I
> looked at on my Pocket PC now have their own Icons. They all use the

start
> button icon. Even things like Pocket Word and Pocket Excel. I'm

beginning
> to think that it's not possible short of overriding the paint event.
>
> --
> Paul Papanek Stork
> MBA, CTT+, MCT, MCSE+I, MCSA, MCAD, MCDBA
> Solutient of Ohio, INC.
> email: pstork <<at>> solutient.com
> visit ME at: <<http://info.cwru.edu/pstork/>>
>
>
> "Alex Feinman [MVP]" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Hmm. I wonder if you could try sending WM_SETICON message with the icon
> > handle
> >
> > --
> > Alex Feinman
> > ---
> > Visit http://www.opennetcf.org
> > "Paul Stork >solutient.com>" <pstork<<at> wrote in message
> > news:(E-Mail Removed)...
> >> Actually, There's already a 16X16 included in the icon file to be used

on
> >> the StartMenu. But I pulled that out to a seperate .ico file and still
> >> can't get it to show in the control box of the form. It's fine during
> >> design mode, but the default icon is all that shows at runtime.
> >>
> >> --
> >> Paul Papanek Stork
> >> MBA, CTT+, MCT, MCSE+I, MCSA, MCAD, MCDBA
> >> Solutient of Ohio, INC.
> >> email: pstork <<at>> solutient.com
> >> visit ME at: <<http://info.cwru.edu/pstork/>>
> >>
> >>
> >> "Chris Tacke, eMVP" <(E-Mail Removed)> wrote in message
> >> news:%23y$(E-Mail Removed)...
> >>> Form icons are 16x16, so you need to add the 16x16 version to your ICO
> >>> file.
> >>>
> >>> -Chris
> >>>
> >>>
> >>> "Paul Stork >solutient.com>" <pstork<<at> wrote in message
> >>> news:(E-Mail Removed)...
> >>>> I'm stumped. I'm trying to replace the default ICON on a vb .net
> >>>> compact
> >>>> Framework form. I've got a 32X32 .ico file that has the graphic I

want
> >>>> to
> >>>> use. I've tried several versions at different color depths. All show
> >>>> fine
> >>> in
> >>>> designer when I set the ICON property of the form. But none of them
> >>>> show
> >>>> correctly when I run the App.
> >>>>
> >>>> I've also tried setting the ICON for the form in code by loading the
> >>>> .ico
> >>> as
> >>>> an embedded resource. It loads fine and the form says that the icon
> >>>> property is pointing to the icon when I run debug, but the default

icon
> >>>> still shows in the form. Any ideas? I've done this in regular VB,

but
> >>> can't
> >>>> get it to work in Compact Framework.
> >>>>
> >>>> --
> >>>> Paul Papanek Stork
> >>>> MBA, CTT+, MCT, MCSE+I, MCSA, MCAD, MCDBA
> >>>> Solutient of Ohio, INC.
> >>>> email: pstork <<at>> solutient.com
> >>>> visit ME at: <<http://info.cwru.edu/pstork/>>
> >>>>
> >>>>
> >>>>
> >>>
> >>>
> >>
> >>

> >
> >

>
>



 
Reply With Quote
 
Paul Stork
Guest
Posts: n/a
 
      9th Sep 2004
I agree. That's the conclusion that I'm coming to. what I don't understand
is why the Icon property is still available on the form at both design and
runtime if it can't be used, Lots of other properties deprecated in
Compact Framework. Why not Icon?

--
Paul Papanek Stork
MBA, CTT+, MCT, MCSE+I, MCSA, MCAD, MCDBA
Solutient of Ohio, INC.
email: pstork <<at>> att.net
visit ME at: <<http://info.cwru.edu/pstork/>>

"Chris Tacke, eMVP" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> *now* it's coming to me what you're saying! Under PPC, the Forms don't
> actually have an icon - the form itself has no caption area (use Spy++ or
> GetWindowLong(GWL_STYLE...) if you don't believe me). The title bar and
> icon are a separate element in PPC, and the icon *is* the "start menu". I
> don't believe it's (easily) changeable.
>
> -Chris
>
>
> "Paul Stork >solutient.com>" <pstork<<at> wrote in message
> news:%232%(E-Mail Removed)...
>> I haven't tried that. However, I did notice that none of the programs I
>> looked at on my Pocket PC now have their own Icons. They all use the

> start
>> button icon. Even things like Pocket Word and Pocket Excel. I'm

> beginning
>> to think that it's not possible short of overriding the paint event.
>>
>> --
>> Paul Papanek Stork
>> MBA, CTT+, MCT, MCSE+I, MCSA, MCAD, MCDBA
>> Solutient of Ohio, INC.
>> email: pstork <<at>> solutient.com
>> visit ME at: <<http://info.cwru.edu/pstork/>>
>>
>>
>> "Alex Feinman [MVP]" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>> > Hmm. I wonder if you could try sending WM_SETICON message with the icon
>> > handle
>> >
>> > --
>> > Alex Feinman
>> > ---
>> > Visit http://www.opennetcf.org
>> > "Paul Stork >solutient.com>" <pstork<<at> wrote in message
>> > news:(E-Mail Removed)...
>> >> Actually, There's already a 16X16 included in the icon file to be used

> on
>> >> the StartMenu. But I pulled that out to a seperate .ico file and
>> >> still
>> >> can't get it to show in the control box of the form. It's fine during
>> >> design mode, but the default icon is all that shows at runtime.
>> >>
>> >> --
>> >> Paul Papanek Stork
>> >> MBA, CTT+, MCT, MCSE+I, MCSA, MCAD, MCDBA
>> >> Solutient of Ohio, INC.
>> >> email: pstork <<at>> solutient.com
>> >> visit ME at: <<http://info.cwru.edu/pstork/>>
>> >>
>> >>
>> >> "Chris Tacke, eMVP" <(E-Mail Removed)> wrote in message
>> >> news:%23y$(E-Mail Removed)...
>> >>> Form icons are 16x16, so you need to add the 16x16 version to your
>> >>> ICO
>> >>> file.
>> >>>
>> >>> -Chris
>> >>>
>> >>>
>> >>> "Paul Stork >solutient.com>" <pstork<<at> wrote in message
>> >>> news:(E-Mail Removed)...
>> >>>> I'm stumped. I'm trying to replace the default ICON on a vb .net
>> >>>> compact
>> >>>> Framework form. I've got a 32X32 .ico file that has the graphic I

> want
>> >>>> to
>> >>>> use. I've tried several versions at different color depths. All show
>> >>>> fine
>> >>> in
>> >>>> designer when I set the ICON property of the form. But none of them
>> >>>> show
>> >>>> correctly when I run the App.
>> >>>>
>> >>>> I've also tried setting the ICON for the form in code by loading the
>> >>>> .ico
>> >>> as
>> >>>> an embedded resource. It loads fine and the form says that the icon
>> >>>> property is pointing to the icon when I run debug, but the default

> icon
>> >>>> still shows in the form. Any ideas? I've done this in regular VB,

> but
>> >>> can't
>> >>>> get it to work in Compact Framework.
>> >>>>
>> >>>> --
>> >>>> Paul Papanek Stork
>> >>>> MBA, CTT+, MCT, MCSE+I, MCSA, MCAD, MCDBA
>> >>>> Solutient of Ohio, INC.
>> >>>> email: pstork <<at>> solutient.com
>> >>>> visit ME at: <<http://info.cwru.edu/pstork/>>
>> >>>>
>> >>>>
>> >>>>
>> >>>
>> >>>
>> >>
>> >>
>> >
>> >

>>
>>

>
>



 
Reply With Quote
 
Chris Tacke, eMVP
Guest
Posts: n/a
 
      10th Sep 2004
Probably because non-PPC devices don't have this "feature" - remember .NETCF
!= PPC

-Chris



"Paul Stork po.cwru.edu>" <pxs23<@> wrote in message
news:7T40d.337387$(E-Mail Removed)...
> I agree. That's the conclusion that I'm coming to. what I don't

understand
> is why the Icon property is still available on the form at both design and
> runtime if it can't be used, Lots of other properties deprecated in
> Compact Framework. Why not Icon?
>
> --
> Paul Papanek Stork
> MBA, CTT+, MCT, MCSE+I, MCSA, MCAD, MCDBA
> Solutient of Ohio, INC.
> email: pstork <<at>> att.net
> visit ME at: <<http://info.cwru.edu/pstork/>>
>
> "Chris Tacke, eMVP" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > *now* it's coming to me what you're saying! Under PPC, the Forms don't
> > actually have an icon - the form itself has no caption area (use Spy++

or
> > GetWindowLong(GWL_STYLE...) if you don't believe me). The title bar and
> > icon are a separate element in PPC, and the icon *is* the "start menu".

I
> > don't believe it's (easily) changeable.
> >
> > -Chris
> >
> >
> > "Paul Stork >solutient.com>" <pstork<<at> wrote in message
> > news:%232%(E-Mail Removed)...
> >> I haven't tried that. However, I did notice that none of the programs

I
> >> looked at on my Pocket PC now have their own Icons. They all use the

> > start
> >> button icon. Even things like Pocket Word and Pocket Excel. I'm

> > beginning
> >> to think that it's not possible short of overriding the paint event.
> >>
> >> --
> >> Paul Papanek Stork
> >> MBA, CTT+, MCT, MCSE+I, MCSA, MCAD, MCDBA
> >> Solutient of Ohio, INC.
> >> email: pstork <<at>> solutient.com
> >> visit ME at: <<http://info.cwru.edu/pstork/>>
> >>
> >>
> >> "Alex Feinman [MVP]" <(E-Mail Removed)> wrote in message
> >> news:(E-Mail Removed)...
> >> > Hmm. I wonder if you could try sending WM_SETICON message with the

icon
> >> > handle
> >> >
> >> > --
> >> > Alex Feinman
> >> > ---
> >> > Visit http://www.opennetcf.org
> >> > "Paul Stork >solutient.com>" <pstork<<at> wrote in message
> >> > news:(E-Mail Removed)...
> >> >> Actually, There's already a 16X16 included in the icon file to be

used
> > on
> >> >> the StartMenu. But I pulled that out to a seperate .ico file and
> >> >> still
> >> >> can't get it to show in the control box of the form. It's fine

during
> >> >> design mode, but the default icon is all that shows at runtime.
> >> >>
> >> >> --
> >> >> Paul Papanek Stork
> >> >> MBA, CTT+, MCT, MCSE+I, MCSA, MCAD, MCDBA
> >> >> Solutient of Ohio, INC.
> >> >> email: pstork <<at>> solutient.com
> >> >> visit ME at: <<http://info.cwru.edu/pstork/>>
> >> >>
> >> >>
> >> >> "Chris Tacke, eMVP" <(E-Mail Removed)> wrote in message
> >> >> news:%23y$(E-Mail Removed)...
> >> >>> Form icons are 16x16, so you need to add the 16x16 version to your
> >> >>> ICO
> >> >>> file.
> >> >>>
> >> >>> -Chris
> >> >>>
> >> >>>
> >> >>> "Paul Stork >solutient.com>" <pstork<<at> wrote in message
> >> >>> news:(E-Mail Removed)...
> >> >>>> I'm stumped. I'm trying to replace the default ICON on a vb .net
> >> >>>> compact
> >> >>>> Framework form. I've got a 32X32 .ico file that has the graphic I

> > want
> >> >>>> to
> >> >>>> use. I've tried several versions at different color depths. All

show
> >> >>>> fine
> >> >>> in
> >> >>>> designer when I set the ICON property of the form. But none of

them
> >> >>>> show
> >> >>>> correctly when I run the App.
> >> >>>>
> >> >>>> I've also tried setting the ICON for the form in code by loading

the
> >> >>>> .ico
> >> >>> as
> >> >>>> an embedded resource. It loads fine and the form says that the

icon
> >> >>>> property is pointing to the icon when I run debug, but the default

> > icon
> >> >>>> still shows in the form. Any ideas? I've done this in regular VB,

> > but
> >> >>> can't
> >> >>>> get it to work in Compact Framework.
> >> >>>>
> >> >>>> --
> >> >>>> Paul Papanek Stork
> >> >>>> MBA, CTT+, MCT, MCSE+I, MCSA, MCAD, MCDBA
> >> >>>> Solutient of Ohio, INC.
> >> >>>> email: pstork <<at>> solutient.com
> >> >>>> visit ME at: <<http://info.cwru.edu/pstork/>>
> >> >>>>
> >> >>>>
> >> >>>>
> >> >>>
> >> >>>
> >> >>
> >> >>
> >> >
> >> >
> >>
> >>

> >
> >

>
>



 
Reply With Quote
 
Paul Stork
Guest
Posts: n/a
 
      13th Sep 2004
You're right. I get so focused on PPC that I tend to forget that CE is
built for a wider embedded community. Thanks.

--
Paul Papanek Stork
MBA, CTT+, MCT, MCSE+I, MCSA, MCAD, MCDBA
Solutient of Ohio, INC.
email: pstork <<at>> solutient.com
visit ME at: <<http://info.cwru.edu/pstork/>>


"Chris Tacke, eMVP" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Probably because non-PPC devices don't have this "feature" - remember
> .NETCF
> != PPC
>
> -Chris
>
>
>
> "Paul Stork po.cwru.edu>" <pxs23<@> wrote in message
> news:7T40d.337387$(E-Mail Removed)...
>> I agree. That's the conclusion that I'm coming to. what I don't

> understand
>> is why the Icon property is still available on the form at both design
>> and
>> runtime if it can't be used, Lots of other properties deprecated in
>> Compact Framework. Why not Icon?
>>
>> --
>> Paul Papanek Stork
>> MBA, CTT+, MCT, MCSE+I, MCSA, MCAD, MCDBA
>> Solutient of Ohio, INC.
>> email: pstork <<at>> att.net
>> visit ME at: <<http://info.cwru.edu/pstork/>>
>>
>> "Chris Tacke, eMVP" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>> > *now* it's coming to me what you're saying! Under PPC, the Forms don't
>> > actually have an icon - the form itself has no caption area (use Spy++

> or
>> > GetWindowLong(GWL_STYLE...) if you don't believe me). The title bar
>> > and
>> > icon are a separate element in PPC, and the icon *is* the "start menu".

> I
>> > don't believe it's (easily) changeable.
>> >
>> > -Chris
>> >
>> >
>> > "Paul Stork >solutient.com>" <pstork<<at> wrote in message
>> > news:%232%(E-Mail Removed)...
>> >> I haven't tried that. However, I did notice that none of the programs

> I
>> >> looked at on my Pocket PC now have their own Icons. They all use the
>> > start
>> >> button icon. Even things like Pocket Word and Pocket Excel. I'm
>> > beginning
>> >> to think that it's not possible short of overriding the paint event.
>> >>
>> >> --
>> >> Paul Papanek Stork
>> >> MBA, CTT+, MCT, MCSE+I, MCSA, MCAD, MCDBA
>> >> Solutient of Ohio, INC.
>> >> email: pstork <<at>> solutient.com
>> >> visit ME at: <<http://info.cwru.edu/pstork/>>
>> >>
>> >>
>> >> "Alex Feinman [MVP]" <(E-Mail Removed)> wrote in message
>> >> news:(E-Mail Removed)...
>> >> > Hmm. I wonder if you could try sending WM_SETICON message with the

> icon
>> >> > handle
>> >> >
>> >> > --
>> >> > Alex Feinman
>> >> > ---
>> >> > Visit http://www.opennetcf.org
>> >> > "Paul Stork >solutient.com>" <pstork<<at> wrote in message
>> >> > news:(E-Mail Removed)...
>> >> >> Actually, There's already a 16X16 included in the icon file to be

> used
>> > on
>> >> >> the StartMenu. But I pulled that out to a seperate .ico file and
>> >> >> still
>> >> >> can't get it to show in the control box of the form. It's fine

> during
>> >> >> design mode, but the default icon is all that shows at runtime.
>> >> >>
>> >> >> --
>> >> >> Paul Papanek Stork
>> >> >> MBA, CTT+, MCT, MCSE+I, MCSA, MCAD, MCDBA
>> >> >> Solutient of Ohio, INC.
>> >> >> email: pstork <<at>> solutient.com
>> >> >> visit ME at: <<http://info.cwru.edu/pstork/>>
>> >> >>
>> >> >>
>> >> >> "Chris Tacke, eMVP" <(E-Mail Removed)> wrote in
>> >> >> message
>> >> >> news:%23y$(E-Mail Removed)...
>> >> >>> Form icons are 16x16, so you need to add the 16x16 version to your
>> >> >>> ICO
>> >> >>> file.
>> >> >>>
>> >> >>> -Chris
>> >> >>>
>> >> >>>
>> >> >>> "Paul Stork >solutient.com>" <pstork<<at> wrote in message
>> >> >>> news:(E-Mail Removed)...
>> >> >>>> I'm stumped. I'm trying to replace the default ICON on a vb .net
>> >> >>>> compact
>> >> >>>> Framework form. I've got a 32X32 .ico file that has the graphic I
>> > want
>> >> >>>> to
>> >> >>>> use. I've tried several versions at different color depths. All

> show
>> >> >>>> fine
>> >> >>> in
>> >> >>>> designer when I set the ICON property of the form. But none of

> them
>> >> >>>> show
>> >> >>>> correctly when I run the App.
>> >> >>>>
>> >> >>>> I've also tried setting the ICON for the form in code by loading

> the
>> >> >>>> .ico
>> >> >>> as
>> >> >>>> an embedded resource. It loads fine and the form says that the

> icon
>> >> >>>> property is pointing to the icon when I run debug, but the
>> >> >>>> default
>> > icon
>> >> >>>> still shows in the form. Any ideas? I've done this in regular
>> >> >>>> VB,
>> > but
>> >> >>> can't
>> >> >>>> get it to work in Compact Framework.
>> >> >>>>
>> >> >>>> --
>> >> >>>> Paul Papanek Stork
>> >> >>>> MBA, CTT+, MCT, MCSE+I, MCSA, MCAD, MCDBA
>> >> >>>> Solutient of Ohio, INC.
>> >> >>>> email: pstork <<at>> solutient.com
>> >> >>>> visit ME at: <<http://info.cwru.edu/pstork/>>
>> >> >>>>
>> >> >>>>
>> >> >>>>
>> >> >>>
>> >> >>>
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >>
>> >>
>> >
>> >

>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change Application Icon [ Output file icon] =?Utf-8?B?QXZuaXNo?= Microsoft C# .NET 1 7th Dec 2006 04:34 PM
Specifying the Form Icon from the Application Icon Phil Galey Microsoft Dot NET Framework 0 30th Nov 2005 06:07 PM
VB application icon on Microsoft AntiSpyware Update application =?Utf-8?B?VkIgYXBwIGljb24gb24gTWljcm9zb2Z0IEFudGlT Spyware Discussion 6 2nd Nov 2005 01:11 AM
Re: Missing Display icon in Control icon =?Utf-8?B?VCBNYXN0ZXI=?= Windows XP General 1 27th Oct 2005 05:47 AM
Re: Duplicate Icon in Control Panel - Missing Icon from Desktop Kelly Windows XP General 1 27th Jul 2003 08:53 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:35 PM.