Click here to Skip to main content
16,004,887 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionConnecting Oracle 10g XE database Pin
srichandk30-Jan-07 1:39
srichandk30-Jan-07 1:39 
Questionhelp convet c# to vb.net Pin
Doritkatz30-Jan-07 0:59
Doritkatz30-Jan-07 0:59 
AnswerRe: help convet c# to vb.net Pin
MohammadYousef30-Jan-07 4:04
MohammadYousef30-Jan-07 4:04 
AnswerRe: help convet c# to vb.net Pin
Dave Doknjas30-Jan-07 13:57
Dave Doknjas30-Jan-07 13:57 
QuestionHow do I run run my program on a network Pin
Tomic29-Jan-07 23:29
Tomic29-Jan-07 23:29 
AnswerRe: How do I run run my program on a network Pin
vimal_yet30-Jan-07 0:56
vimal_yet30-Jan-07 0:56 
QuestionHow to convert system.drawing.color to string and vice versa? Pin
.NetRams29-Jan-07 23:13
.NetRams29-Jan-07 23:13 
AnswerRe: How to convert system.drawing.color to string and vice versa? Pin
.NetRams30-Jan-07 1:22
.NetRams30-Jan-07 1:22 
Hey, Got the answer,
I have done using the followin two functions to do that,

Public Function GetColorToString(ByVal colorObj As System.Drawing.Color) As String
Dim hexString As String
hexString = "#" & Strings.Right("0" & Hex(colorObj.R), 2) & _
Strings.Right("0" & Hex(colorObj.G), 2) & _
Strings.Right("0" & Hex(colorObj.B), 2)
Return hexString
End Function

Public Function GetColorFromString(ByVal strColor As String) As System.Drawing.Color
If Not strColor Is Nothing Then
Dim colConvert As New ColorConverter
Return colConvert.ConvertFromString(strColor)
End If
End Function

It's working for me.

Be simple and Be sample.

GeneralRe: How to convert system.drawing.color to string and vice versa? Pin
IqbalVB30-Jan-07 9:15
IqbalVB30-Jan-07 9:15 
Questionhelp me... in reading an ms access file Pin
raghu nasty29-Jan-07 23:05
raghu nasty29-Jan-07 23:05 
AnswerRe: help me... in reading an ms access file Pin
Colin Angus Mackay29-Jan-07 23:09
Colin Angus Mackay29-Jan-07 23:09 
QuestionHow do i get an image to appear in a picture box using the open file dialog?? Pin
China-Gary29-Jan-07 23:04
China-Gary29-Jan-07 23:04 
AnswerRe: How do i get an image to appear in a picture box using the open file dialog?? Pin
Christian Graus29-Jan-07 23:41
protectorChristian Graus29-Jan-07 23:41 
GeneralRe: How do i get an image to appear in a picture box using the open file dialog?? Pin
China-Gary29-Jan-07 23:59
China-Gary29-Jan-07 23:59 
AnswerRe: How do i get an image to appear in a picture box using the open file dialog?? Pin
IqbalVB30-Jan-07 9:21
IqbalVB30-Jan-07 9:21 
QuestionHow to schedule a DB Job from Code Pin
suyh8229-Jan-07 23:03
suyh8229-Jan-07 23:03 
Questionchange date back color in monthcalander Pin
Neeraj Arora29-Jan-07 23:00
Neeraj Arora29-Jan-07 23:00 
QuestionHow I Can Print a File ? Pin
Yadav A Kumar29-Jan-07 22:13
Yadav A Kumar29-Jan-07 22:13 
AnswerRe: How I Can Print a File ? Pin
Vasudevan Deepak Kumar29-Jan-07 22:27
Vasudevan Deepak Kumar29-Jan-07 22:27 
AnswerRe: How I Can Print a File ? Pin
IqbalVB30-Jan-07 9:30
IqbalVB30-Jan-07 9:30 
Questionaccessing word document Pin
vimal_yet29-Jan-07 22:10
vimal_yet29-Jan-07 22:10 
AnswerRe: accessing word document Pin
Vasudevan Deepak Kumar29-Jan-07 22:28
Vasudevan Deepak Kumar29-Jan-07 22:28 
QuestionRe: accessing word document Pin
vimal_yet29-Jan-07 22:52
vimal_yet29-Jan-07 22:52 
QuestionExcel file (Read and Write) Pin
naramis29-Jan-07 21:54
naramis29-Jan-07 21:54 
AnswerRe: Excel file (Read and Write) Pin
Christian Graus29-Jan-07 21:57
protectorChristian Graus29-Jan-07 21:57 

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.