Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


Very quick treeview question


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-28-2008, 06:13 PM
Knows the basics
 
Join Date: May 2007
Posts: 64
Awards Showcase
Beta Tester 
Total Awards: 1
Default Very quick treeview question

Hello,
I am trying to use a TreeView object called tree in my application.
I am trying to set its color by typing
Code:
tree.Color = 0,51,51
(I have followed the Color example of the general B4PPC help file since there is no example for this property of the TreeView)

But the compiler gives me an error telling that it needs a semicolon (:
Error CS1002: ; expected

How can I set this property?

Same question for tree.FontColor

I am sure that some of the gurus know the answer to this (probably) stupid question :-)

Thanks in advance

Regards,
Murat
__________________
PC: Laptop CoreDUo, Windows XP SP2 French
PPC: TyTN, WM5 French -> iPAQ 214 WM6 French (to diverge or not to diverge,...)
Reply With Quote
  #2 (permalink)  
Old 02-28-2008, 06:15 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,896
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

That is old superceded syntax in the help file.

tree.Color =RGB(0,51,51)
Reply With Quote
  #3 (permalink)  
Old 02-28-2008, 06:33 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,334
Default

This syntax only works with the built-in controls.
As agraham wrote, you should always use RGB(r,g,b) instead.
Reply With Quote
  #4 (permalink)  
Old 02-28-2008, 06:36 PM
Knows the basics
 
Join Date: May 2007
Posts: 64
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Thanks a lot to both of you!
It seems that I have totally missed this point

Best regards,

Murat
__________________
PC: Laptop CoreDUo, Windows XP SP2 French
PPC: TyTN, WM5 French -> iPAQ 214 WM6 French (to diverge or not to diverge,...)
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Stupid question: Where is TreeView.dll? yildi Questions & Help Needed 2 02-16-2008 04:19 PM
? Just a quick question, ****.exe.config taximania Questions & Help Needed 12 09-01-2007 08:15 PM
Splat Master V2 - How Quick Are You Now?? RandomCoder Share Your Creations 7 07-05-2007 12:37 PM
TreeView SelectedImageIndex adukes Questions & Help Needed 3 06-27-2007 07:58 PM
Quick question to avoid going down a long dead end route LineCutter Questions & Help Needed 2 05-22-2007 08:29 AM


All times are GMT. The time now is 01:36 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0