Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

convert Color to B4ppc's color?

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-13-2009, 11:12 AM
Byak@'s Avatar
Basic4ppc Veteran
 
Join Date: Jul 2008
Posts: 416
Send a message via ICQ to Byak@
Awards Showcase
Beta Tester 
Total Awards: 1
Default convert Color to B4ppc's color?

Code:
clr.new1(False)
clr.createNew(
"System.Drawing.Color"&clr.System_Drawing)
button1.color=clr.getproperty(
"Red")
in IDE work fine,but when i'm compil it i have IConvertible error (next in russian)
i think i must convert Color to Digits. yes? and how do it?
__________________
I'll Kill you, I'll Crash you, I'll never be yours!
--------------------------------------------------
Qtek s110; o2 XDA Flame; Nokia E63 red;
ASUS Eee PC 901 (Windows XP sp3) + TouchScreen;
Reply With Quote
  #2 (permalink)  
Old 07-13-2009, 11:25 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Code:
clr.new1(False)
clr.createNew(
"System.Drawing.Color"&clr.System_Drawing)
clr.Value = clr.getproperty(
"Red"' returns a Color object
button1.color=clr.RunMethod("ToArgb"' convert Color to an Int32
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
  #3 (permalink)  
Old 07-13-2009, 11:52 AM
Byak@'s Avatar
Basic4ppc Veteran
 
Join Date: Jul 2008
Posts: 416
Send a message via ICQ to Byak@
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Thanks :-[
__________________
I'll Kill you, I'll Crash you, I'll never be yours!
--------------------------------------------------
Qtek s110; o2 XDA Flame; Nokia E63 red;
ASUS Eee PC 901 (Windows XP sp3) + TouchScreen;
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 Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
tree.color Scubaticus Basic4ppc Wishlist 4 03-22-2009 01:00 PM
Color Dialog Box ceaser Basic4ppc Wishlist 12 07-29-2008 08:37 PM
Background Color im4retro Basic4ppc Wishlist 1 05-27-2008 05:11 PM
Background Color im4retro Questions (Windows Mobile) 2 05-27-2008 03:55 PM
VB color value Leginus Questions (Windows Mobile) 6 01-19-2008 10:58 AM


All times are GMT. The time now is 04:39 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0