TreeView.BackColor - Must be an FAQ but I don't see it in there

  • Thread starter Thread starter Richard Thombs
  • Start date Start date
R

Richard Thombs

Is it possible to change the background color of TreeView controls or
did that not get fixed in SP2 after all?

Would overriding OnPaint and drawing my own filled background first work?

Thanks,

R.
 
Hello,

Changing the background color of TreeView controls is not supported on
Pocket PC. It is a restriction of the OS - the underlying native control
that is used by the .NET Compact Framework does not support changing its
background color. So, unfortunately, the .NET Compact Framework can't do
anything here to workaround this problem.

Thank you,
Sergiy.

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| From: Richard Thombs <[email protected]>
| User-Agent: Mozilla Thunderbird 0.7 (Windows/20040616)
| X-Accept-Language: en-us, en
| MIME-Version: 1.0
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| Subject: TreeView.BackColor - Must be an FAQ but I don't see it in there
| Content-Type: text/plain; charset=us-ascii; format=flowed
| Content-Transfer-Encoding: 7bit
| Lines: 8
| Message-ID: <%T0Cc.77725$%T.34686@okepread05>
| Date: Tue, 22 Jun 2004 13:45:46 -0700
| NNTP-Posting-Host: 68.5.16.44
| X-Complaints-To: (e-mail address removed)
| X-Trace: okepread05 1087937147 68.5.16.44 (Tue, 22 Jun 2004 16:45:47 EDT)
| NNTP-Posting-Date: Tue, 22 Jun 2004 16:45:47 EDT
| Organization: Cox Communications
| Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.s
ul.t-online.de!t-online.de!news.glorb.com!cox.net!news-xfer.cox.net!p01!okep
read05.POSTED!not-for-mail
| Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.compactframework:55781
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| Is it possible to change the background color of TreeView controls or
| did that not get fixed in SP2 after all?
|
| Would overriding OnPaint and drawing my own filled background first work?
|
| Thanks,
|
| R.
|
 
Serg said:
Hello,

Changing the background color of TreeView controls is not supported on
Pocket PC. It is a restriction of the OS - the underlying native control
that is used by the .NET Compact Framework does not support changing its
background color. So, unfortunately, the .NET Compact Framework can't do
anything here to workaround this problem.

Thank you,
Sergiy.

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| From: Richard Thombs <[email protected]>
| User-Agent: Mozilla Thunderbird 0.7 (Windows/20040616)
| X-Accept-Language: en-us, en
| MIME-Version: 1.0
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| Subject: TreeView.BackColor - Must be an FAQ but I don't see it in there
| Content-Type: text/plain; charset=us-ascii; format=flowed
| Content-Transfer-Encoding: 7bit
| Lines: 8
| Message-ID: <%T0Cc.77725$%T.34686@okepread05>
| Date: Tue, 22 Jun 2004 13:45:46 -0700
| NNTP-Posting-Host: 68.5.16.44
| X-Complaints-To: (e-mail address removed)
| X-Trace: okepread05 1087937147 68.5.16.44 (Tue, 22 Jun 2004 16:45:47 EDT)
| NNTP-Posting-Date: Tue, 22 Jun 2004 16:45:47 EDT
| Organization: Cox Communications
| Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.s
ul.t-online.de!t-online.de!news.glorb.com!cox.net!news-xfer.cox.net!p01!okep
read05.POSTED!not-for-mail
| Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.compactframework:55781
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| Is it possible to change the background color of TreeView controls or
| did that not get fixed in SP2 after all?
|
| Would overriding OnPaint and drawing my own filled background first work?
|
| Thanks,
|
| R.
|
Darn, thanks Sergiy.

R.
 
Back
Top