Y yildi Member Licensed User Feb 28, 2008 #1 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
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
agraham Expert Licensed User Longtime User Feb 28, 2008 #2 That is old superceded syntax in the help file. tree.Color =RGB(0,51,51)
Erel B4X founder Staff member Licensed User Longtime User Feb 28, 2008 #3 This syntax only works with the built-in controls. As agraham wrote, you should always use RGB(r,g,b) instead.
This syntax only works with the built-in controls. As agraham wrote, you should always use RGB(r,g,b) instead.
Y yildi Member Licensed User Feb 28, 2008 #4 Thanks a lot to both of you! It seems that I have totally missed this point Best regards, Murat