Hi, I use VB.net 2003 to try develop Pocket PC App, but the code below does
not work:

"
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Button1.BackColor = Color.Red
End Sub
"
Why does it not work? Is it caused by .netcf can not support
Button.BackColor property?


B.R.
Risen

Re: Why the code does not work? by Peter

Peter
Mon Jul 17 07:29:04 CDT 2006

Button.BackColor is only supported by the .NETCF v1.0 SP2 runtime and
higher, on the original RTM release or SP1 it will have no effect. Changes
between .NETCF v1.0 versions can be found here:-
http://www.peterfoot.net/ServicePacksAndFixes.aspx

Regards,

Peter

--
Peter Foot
Device Application Developer MVP
www.peterfoot.net | www.inthehand.com

"Risen" <irithia@yahoo.com.cn> wrote in message
news:erhYIlZqGHA.5108@TK2MSFTNGP05.phx.gbl...
> Hi, I use VB.net 2003 to try develop Pocket PC App, but the code below
> does not work:
>
> "
> Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
> System.EventArgs) Handles Button1.Click
> Button1.BackColor = Color.Red
> End Sub
> "
> Why does it not work? Is it caused by .netcf can not support
> Button.BackColor property?
>
>
> B.R.
> Risen
>
>



Re: Why the code does not work? by vikash

vikash
Mon Jul 17 07:36:28 CDT 2006

Try getting service pack 3 for .net cf from microsoft site.
It will resolve the problem i hope.

Thanks & Regards
Vikash


Risen wrote:

> Hi, I use VB.net 2003 to try develop Pocket PC App, but the code below does
> not work:
>
> "
> Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
> System.EventArgs) Handles Button1.Click
> Button1.BackColor = Color.Red
> End Sub
> "
> Why does it not work? Is it caused by .netcf can not support
> Button.BackColor property?
>
>
> B.R.
> Risen


Re: Why the code does not work? by Risen

Risen
Mon Jul 17 08:41:56 CDT 2006

Thx, I will upgrade it.

"Risen" <irithia@yahoo.com.cn> дÈëÏûÏ¢ÐÂÎÅ:erhYIlZqGHA.5108@TK2MSFTNGP05.phx.gbl...
> Hi, I use VB.net 2003 to try develop Pocket PC App, but the code below
> does not work:
>
> "
> Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
> System.EventArgs) Handles Button1.Click
> Button1.BackColor = Color.Red
> End Sub
> "
> Why does it not work? Is it caused by .netcf can not support
> Button.BackColor property?
>
>
> B.R.
> Risen
>
>