Click here to Skip to main content
15,899,026 members
Home / Discussions / Mobile
   

Mobile

 
QuestionHooking and intercepting API in symbian OS Pin
kalayni14-May-08 0:11
kalayni14-May-08 0:11 
Questionhelp to query the GPS device via serial port Pin
susilrani13-May-08 18:23
susilrani13-May-08 18:23 
AnswerRe: help to query the GPS device via serial port Pin
Cedric Moonen13-May-08 21:05
Cedric Moonen13-May-08 21:05 
GeneralRe: help to query the GPS device via serial port Pin
susilrani14-May-08 0:50
susilrani14-May-08 0:50 
AnswerRe: help to query the GPS device via serial port Pin
Gul Mohammad17-Feb-10 23:15
Gul Mohammad17-Feb-10 23:15 
QuestionHow to use SIP in Windows Mobile 6.0 Pin
am 200913-May-08 3:47
am 200913-May-08 3:47 
QuestionConverting a Color to value or string in C.F.2 SP2 and VB. [modified] Pin
Hurricane300012-May-08 0:20
Hurricane300012-May-08 0:20 
AnswerRe: Converting a Color to value or string in C.F.2 SP2 and VB. Pin
Rupesh Kumar Swami12-May-08 1:40
Rupesh Kumar Swami12-May-08 1:40 
hi,
i also done this type of work in .net framework . Try following code in .netCF

for change color value to String variable
Dim a As New ColorDialog<br />
        If a.ShowDialog = Windows.Forms.DialogResult.OK Then<br />
            Dim STR As String = RGB2HTMLColor(a.Color.R, a.Color.G, a.Color.B)<br />
endif


where code of RGB2HTMLColor function is following

Private Function RGB2HTMLColor(ByVal R As Byte, ByVal G As Byte, ByVal B As Byte) As String<br />
<br />
        Dim HexR, HexB, HexG As Object<br />
        Dim sTemp As String<br />
<br />
        'R<br />
        HexR = Hex(R)<br />
        If Len(HexR) < 2 Then HexR = "0" & HexR<br />
<br />
        'Get Green Hex<br />
        HexG = Hex(G)<br />
        If Len(HexG) < 2 Then HexG = "0" & HexG<br />
<br />
        HexB = Hex(B)<br />
        If Len(HexB) < 2 Then HexB = "0" & HexB<br />
<br />
        RGB2HTMLColor = "#" & HexR & HexG & HexB<br />
    End Function<br />


and for change a string to color (reverse)

dim a as color<br />
Dim ArgbComp As String() = Microsoft.VisualBasic.Split(HEXCOL2RGB("#000000"), ",") '#000000 is sample<br />
       a.BackColor = Color.FromArgb(ArgbComp(0), ArgbComp(1), ArgbComp(2), ArgbComp(3))


where code of HEXCOL2RGB function is following
<br />
 Private Function HEXCOL2RGB(ByVal HexColor As String) As String<br />
<br />
            Dim Red As String<br />
        Dim Green As String<br />
        Dim Blue As String<br />
<br />
        Red = Val("&H" & HexColor.Substring(1, 2))<br />
        'The red value is now the long version of "00"<br />
<br />
        Green = Val("&H" & HexColor.Substring(3, 2))<br />
        'The red value is now the long version of "FF"<br />
<br />
        Blue = Val("&H" & HexColor.Substring(5, 2))<br />
        'The red value is now the long version of "1F"<br />
<br />
<br />
        HEXCOL2RGB = "255," & CInt(Red) & "," & CInt(Green) & "," & CInt(Blue)<br />
<br />
        Return HEXCOL2RGB<br />
<br />
    End Function


hope this helps

Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)

My Company

GeneralRe: Converting a Color to value or string in C.F.2 SP2 and VB. [modified] Pin
Hurricane300012-May-08 2:37
Hurricane300012-May-08 2:37 
Questionlist view control proplem Pin
monafr8111-May-08 3:23
monafr8111-May-08 3:23 
AnswerRe: list view control proplem Pin
DaveyM6920-May-08 3:44
professionalDaveyM6920-May-08 3:44 
QuestionAPI Hooking in Symbian OS Pin
Tejasvi Sabale10-May-08 4:11
Tejasvi Sabale10-May-08 4:11 
Questionhow to activate my GPS, programetically? Pin
Solanki Rajat8-May-08 21:17
Solanki Rajat8-May-08 21:17 
AnswerRe: how to activate my GPS, programetically? Pin
Rupesh Kumar Swami8-May-08 21:49
Rupesh Kumar Swami8-May-08 21:49 
Questionhow to get and set device on/off status? Pin
Solanki Rajat8-May-08 21:12
Solanki Rajat8-May-08 21:12 
AnswerRe: how to get and set device on/off status? Pin
Rupesh Kumar Swami8-May-08 21:25
Rupesh Kumar Swami8-May-08 21:25 
Questionhow to make my experimental XPe image ready to be network booted (and other problems)? Pin
Super Lloyd8-May-08 14:22
Super Lloyd8-May-08 14:22 
QuestionVersion # Auto increment on every rebulid? Pin
Ibuprofen8-May-08 5:07
Ibuprofen8-May-08 5:07 
AnswerRe: Version # Auto increment on every rebulid? Pin
Ibuprofen8-May-08 9:38
Ibuprofen8-May-08 9:38 
QuestionBHO event capture of Internet Explorer. Pin
Shashi.Shinde8-May-08 1:44
Shashi.Shinde8-May-08 1:44 
QuestionAbout "Windows XP Embedded Image Difference Engine"? Pin
Super Lloyd7-May-08 20:32
Super Lloyd7-May-08 20:32 
AnswerRe: About "Windows XP Embedded Image Difference Engine"? Pin
Arjun Marwaha8-May-08 11:21
Arjun Marwaha8-May-08 11:21 
GeneralRe: About "Windows XP Embedded Image Difference Engine"? Pin
Super Lloyd8-May-08 13:13
Super Lloyd8-May-08 13:13 
Questionuse .net cf with camera Pin
odinlai7-May-08 8:52
odinlai7-May-08 8:52 
QuestionXPe: boot from a network share (or something similar)? Pin
Super Lloyd6-May-08 20:42
Super Lloyd6-May-08 20:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.