PC Review


Reply
Thread Tools Rate Thread

Control Color

 
 
David Bacon
Guest
Posts: n/a
 
      1st Mar 2004
I have a button on a form that I need to change the Background Color, or
make it transparent. This is what it looks like-
this.button1.Location = new System.Drawing.Point(48, 88);

this.button1.Size = new System.Drawing.Size(48, 24);

this.button1.Text = "button1";

this.button1.BackColor=Color.Blue;

In Design Mode the button is blue, but in debug, the button is still gray.

Can someone please point me in the right direction.



Thanks

Dave


 
Reply With Quote
 
 
 
 
Maarten Struys, eMVP
Guest
Posts: n/a
 
      1st Mar 2004
Are you sure that your target device has SP2 installed?

--
Regards,

Maarten Struys, eMVP
PTS Software bv

www.opennetcf.org | www.dotnetfordevices.com

"David Bacon" <(E-Mail Removed)> wrote in message
news:e6fQBHy$(E-Mail Removed)...
> I have a button on a form that I need to change the Background Color, or
> make it transparent. This is what it looks like-
> this.button1.Location = new System.Drawing.Point(48, 88);
>
> this.button1.Size = new System.Drawing.Size(48, 24);
>
> this.button1.Text = "button1";
>
> this.button1.BackColor=Color.Blue;
>
> In Design Mode the button is blue, but in debug, the button is still gray.
>
> Can someone please point me in the right direction.
>
>
>
> Thanks
>
> Dave
>
>



 
Reply With Quote
 
David Bacon
Guest
Posts: n/a
 
      2nd Mar 2004
Yes Everything is up to date
I am running pocketpc 2003 version 4.20.1081 build 13100 and I have
installed the SDK for 2003

"David Bacon" <(E-Mail Removed)> wrote in message
news:e6fQBHy$(E-Mail Removed)...
> I have a button on a form that I need to change the Background Color, or
> make it transparent. This is what it looks like-
> this.button1.Location = new System.Drawing.Point(48, 88);
>
> this.button1.Size = new System.Drawing.Size(48, 24);
>
> this.button1.Text = "button1";
>
> this.button1.BackColor=Color.Blue;
>
> In Design Mode the button is blue, but in debug, the button is still gray.
>
> Can someone please point me in the right direction.
>
>
>
> Thanks
>
> Dave
>
>



 
Reply With Quote
 
Maarten Struys, eMVP
Guest
Posts: n/a
 
      3rd Mar 2004
Are you sure that SP2 is installed on your device? A PocketPC 2003 has the
..NET Compact Framework v1 in ROM so you would have to install SP2
separately.

--
Regards,

Maarten Struys, eMVP
PTS Software bv

www.opennetcf.org | www.dotnetfordevices.com

"David Bacon" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Yes Everything is up to date
> I am running pocketpc 2003 version 4.20.1081 build 13100 and I have
> installed the SDK for 2003
>
> "David Bacon" <(E-Mail Removed)> wrote in message
> news:e6fQBHy$(E-Mail Removed)...
> > I have a button on a form that I need to change the Background Color, or
> > make it transparent. This is what it looks like-
> > this.button1.Location = new System.Drawing.Point(48, 88);
> >
> > this.button1.Size = new System.Drawing.Size(48, 24);
> >
> > this.button1.Text = "button1";
> >
> > this.button1.BackColor=Color.Blue;
> >
> > In Design Mode the button is blue, but in debug, the button is still

gray.
> >
> > Can someone please point me in the right direction.
> >
> >
> >
> > Thanks
> >
> > Dave
> >
> >

>
>



 
Reply With Quote
 
David Bacon
Guest
Posts: n/a
 
      5th Mar 2004
Thank You for your help. You were right on the money.


"Maarten Struys, eMVP" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Are you sure that SP2 is installed on your device? A PocketPC 2003 has the
> .NET Compact Framework v1 in ROM so you would have to install SP2
> separately.
>
> --
> Regards,
>
> Maarten Struys, eMVP
> PTS Software bv
>
> www.opennetcf.org | www.dotnetfordevices.com
>
> "David Bacon" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
> > Yes Everything is up to date
> > I am running pocketpc 2003 version 4.20.1081 build 13100 and I have
> > installed the SDK for 2003
> >
> > "David Bacon" <(E-Mail Removed)> wrote in message
> > news:e6fQBHy$(E-Mail Removed)...
> > > I have a button on a form that I need to change the Background Color,

or
> > > make it transparent. This is what it looks like-
> > > this.button1.Location = new System.Drawing.Point(48, 88);
> > >
> > > this.button1.Size = new System.Drawing.Size(48, 24);
> > >
> > > this.button1.Text = "button1";
> > >
> > > this.button1.BackColor=Color.Blue;
> > >
> > > In Design Mode the button is blue, but in debug, the button is still

> gray.
> > >
> > > Can someone please point me in the right direction.
> > >
> > >
> > >
> > > Thanks
> > >
> > > Dave
> > >
> > >

> >
> >

>
>



 
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
Any color pallet control [Little color square] in C# Prashant Microsoft C# .NET 0 16th Aug 2007 04:19 PM
custom color control for powerpoint graphs / excel color palattes =?Utf-8?B?Z3V5?= Microsoft Powerpoint 2 4th Apr 2007 01:30 AM
Why is the Tab Control color not Detail section color? =?Utf-8?B?bnd0cnVzdA==?= Microsoft Access Forms 3 27th Oct 2006 03:45 PM
Control default color of web browser control.... =?Utf-8?B?aHpndDliQG5vcG9zdC5jb20=?= Microsoft Powerpoint 2 20th Sep 2005 08:48 PM
Re: Tab control/Page control color Bob Quintal Microsoft Access Forms 0 30th Jul 2003 03:34 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:31 AM.