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.


VB color value


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-18-2008, 05:30 PM
Junior Member
 
Join Date: Dec 2007
Posts: 27
Default VB color value

I have searched the forums but cannot seem to find an answer.
Is it possible to convert the long color values from vb into rgb??

e.g. txtTestBox.BackColor = 16777215

I found a solution on google but it was using the Hex keyword and I don't think that is supported yet.

thanks
Reply With Quote
  #2 (permalink)  
Old 01-18-2008, 05:48 PM
dzt's Avatar
dzt dzt is offline
Basic4ppc Veteran
 
Join Date: May 2007
Location: Greece
Posts: 353
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by Leginus View Post
...I found a solution on google but it was using the Hex keyword and I don't think that is supported yet.
It is supported. See Bitwise library
__________________
Dimitris Zacharakis
http://www.terracom.gr
Reply With Quote
  #3 (permalink)  
Old 01-18-2008, 05:51 PM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 672
Default

See this thread RGB separation if you don't want to use a separate library.


specci48
Reply With Quote
  #4 (permalink)  
Old 01-18-2008, 06:02 PM
Junior Member
 
Join Date: Dec 2007
Posts: 27
Default

Thanks that is just what i was looking for. Obviously i didnt read the forum well enough
Reply With Quote
  #5 (permalink)  
Old 01-19-2008, 07:08 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,334
Default

You could use the GetRGB method.
Reply With Quote
  #6 (permalink)  
Old 01-19-2008, 11:10 AM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 672
Default

Quote:
Originally Posted by Erel View Post
You could use the GetRGB method.
Oh yes, haven't remembered this new feature ...
Reply With Quote
  #7 (permalink)  
Old 01-19-2008, 11:58 AM
Junior Member
 
Join Date: Dec 2007
Posts: 27
Default

Thanks all, I have also noticed that I don't actually need to convert it either. I can use the same value and it works, although RGB is preferable personally.
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
Change color in a progress bar 2220 Questions & Help Needed 8 09-28-2008 10:58 AM
Color Dialog Box ceaser Basic4ppc Wishlist 12 07-29-2008 09:37 PM
Background Color im4retro Basic4ppc Wishlist 1 05-27-2008 06:11 PM
Background Color im4retro Questions & Help Needed 2 05-27-2008 04:55 PM
Image1.color cosmo15900 Questions & Help Needed 3 02-02-2008 10:47 PM


All times are GMT. The time now is 03:33 PM.


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