Hi

I don't use .NetCF myself but have someone working for me developing a PPC
app using C#. To cut a long story short the spec is for different coloured
command buttons to be used rather than the default grey background, but the
developer (who otherwise seems pretty good) is resisting this saying it will
be a lot of work as .NetCF doesn't provide this capability natively.

With PC-based languages I work with, changing the backcolor is easy peasy,
either by subclassing or just setting a backcolor property.

So the question, is this _really_ so difficult in .NetCF?

Cheers

Brian Abbott

Re: Is this really so difficult? by Jon

Jon
Tue Oct 05 07:09:43 CDT 2004

Brian Abbott <brian@msdnacasystems.co.uk> wrote:
> I don't use .NetCF myself but have someone working for me developing a PPC
> app using C#. To cut a long story short the spec is for different coloured
> command buttons to be used rather than the default grey background, but the
> developer (who otherwise seems pretty good) is resisting this saying it will
> be a lot of work as .NetCF doesn't provide this capability natively.
>
> With PC-based languages I work with, changing the backcolor is easy peasy,
> either by subclassing or just setting a backcolor property.
>
> So the question, is this _really_ so difficult in .NetCF?

Yes, to put it simply.

There are many things in the full framework which aren't in the Compact
Framework. The BackColor property is present in Control, but is only
supported for certain controls.

--
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too

Re: Is this really so difficult? by Tim

Tim
Tue Oct 05 07:12:39 CDT 2004

Starting with SP2, the Button BackColor has been properly implemented. So if
you install SP2, then the developer can set the BackColor's in the
constructor quite easily.
http://www.microsoft.com/downloads/details.aspx?FamilyID=359ea6da-fc5d-41cc-ac04-7bb50a134556&displaylang=en

--
Tim Wilson
.Net Compact Framework MVP

<Feedback>
Do have an opinion on the effectiveness of Microsoft Windows Mobile and
Embedded newsgroups? Let us know!
https://www.windowsembeddedeval.com/community/newsgroups
</Feedback>

"Brian Abbott" <brian@msdnacasystems.co.uk> wrote in message
news:Otf9XItqEHA.3728@TK2MSFTNGP09.phx.gbl...
> Hi
>
> I don't use .NetCF myself but have someone working for me developing a PPC
> app using C#. To cut a long story short the spec is for different
coloured
> command buttons to be used rather than the default grey background, but
the
> developer (who otherwise seems pretty good) is resisting this saying it
will
> be a lot of work as .NetCF doesn't provide this capability natively.
>
> With PC-based languages I work with, changing the backcolor is easy peasy,
> either by subclassing or just setting a backcolor property.
>
> So the question, is this _really_ so difficult in .NetCF?
>
> Cheers
>
> Brian Abbott
>
>



Re: Is this really so difficult? by Jon

Jon
Tue Oct 05 07:27:18 CDT 2004

<"Tim Wilson" <TIM(UNDERSCORE)WILSON(AT)ROGERS(PERIOD)COM>> wrote:
> Starting with SP2, the Button BackColor has been properly implemented. So if
> you install SP2, then the developer can set the BackColor's in the
> constructor quite easily.
> http://www.microsoft.com/downloads/details.aspx?FamilyID=359ea6da-fc5
> d-41cc-ac04-7bb50a134556&displaylang=en

I don't believe that's true, unfortunately.

Note that the page you linked to says

"Added support for ForeColor &/or BackColor for Button [...]" so it
could easily just be ForeColor.

Having said that, I've just tried setting both the BackColor *and* the
ForeColor of a button to different colours, and it had absolutely no
effect, so I don't know what they actually *have* changed there...

--
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too

Re: Is this really so difficult? by Jon

Jon
Tue Oct 05 07:45:42 CDT 2004

Jon Skeet [C# MVP] <skeet@pobox.com> wrote:
> <"Tim Wilson" <TIM(UNDERSCORE)WILSON(AT)ROGERS(PERIOD)COM>> wrote:
> > Starting with SP2, the Button BackColor has been properly implemented. So if
> > you install SP2, then the developer can set the BackColor's in the
> > constructor quite easily.
> > http://www.microsoft.com/downloads/details.aspx?FamilyID=359ea6da-fc5
> > d-41cc-ac04-7bb50a134556&displaylang=en
>
> I don't believe that's true, unfortunately.
>
> Note that the page you linked to says
>
> "Added support for ForeColor &/or BackColor for Button [...]" so it
> could easily just be ForeColor.
>
> Having said that, I've just tried setting both the BackColor *and* the
> ForeColor of a button to different colours, and it had absolutely no
> effect, so I don't know what they actually *have* changed there...

My mistake - I appear to have SP1 on my device, not SP2. (I could have
sworn the devices came with SP2, but there we go...)

--
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too

Re: Is this really so difficult? by Brian

Brian
Tue Oct 05 08:35:16 CDT 2004

Thanks to you and Jon, that's useful.

Any reason why SP2 (RE-released 10 months ago) wouldn't be in use ?

Cheers

Brian Abbott

"Tim Wilson" <TIM(UNDERSCORE)WILSON(AT)ROGERS(PERIOD)COM> wrote in message
news:%232GeXStqEHA.1712@tk2msftngp13.phx.gbl...
> Starting with SP2, the Button BackColor has been properly implemented. So
if
> you install SP2, then the developer can set the BackColor's in the
> constructor quite easily.
>
http://www.microsoft.com/downloads/details.aspx?FamilyID=359ea6da-fc5d-41cc-ac04-7bb50a134556&displaylang=en
>
> --
> Tim Wilson
> .Net Compact Framework MVP
>
> <Feedback>
> Do have an opinion on the effectiveness of Microsoft Windows Mobile and
> Embedded newsgroups? Let us know!
> https://www.windowsembeddedeval.com/community/newsgroups
> </Feedback>
>
> "Brian Abbott" <brian@msdnacasystems.co.uk> wrote in message
> news:Otf9XItqEHA.3728@TK2MSFTNGP09.phx.gbl...
> > Hi
> >
> > I don't use .NetCF myself but have someone working for me developing a
PPC
> > app using C#. To cut a long story short the spec is for different
> coloured
> > command buttons to be used rather than the default grey background, but
> the
> > developer (who otherwise seems pretty good) is resisting this saying it
> will
> > be a lot of work as .NetCF doesn't provide this capability natively.
> >
> > With PC-based languages I work with, changing the backcolor is easy
peasy,
> > either by subclassing or just setting a backcolor property.
> >
> > So the question, is this _really_ so difficult in .NetCF?
> >
> > Cheers
> >
> > Brian Abbott
> >
> >
>
>



Re: Is this really so difficult? by Jon

Jon
Tue Oct 05 08:54:25 CDT 2004

Brian Abbott <brian@msdnacasystems.co.uk> wrote:
> Thanks to you and Jon, that's useful.
>
> Any reason why SP2 (RE-released 10 months ago) wouldn't be in use ?

It depends on what ROM your device has. Device manufacturers are
understandably leery of new versions of a ROM when the one they've got
is working mostly okay.

However, you can distribute SP2 and install it with your app.

--
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too