Subject: using ColorTranslator
Posted By: Spin Post Date: 1/4/2006 6:03:57 PM
I am trying to use the Common Dialog Color box to pick a color and then return it's HTML value on a MS Access form. Right now I just want a MsgBox with the color value.

Private Sub Command1_Click()
 With CommonDialog
  .DialogTitle = "Pick a color"
  .ShowColor
  Dim htmlColor As String
'  htmlColor = System.Drawing.ColorTranslator.ToHtml(.Color)
  MsgBox "Color is " & System.Drawing.ColorTranslator.ToHtml(.Color)
  
End With
End Sub


I can pick the color then I get a 424 error Object required. I am a total noobie and I know the problem is somewhere on the MsgBox line.

TIA
Caleb


Go to topic 38287

Return to index page 403
Return to index page 402
Return to index page 401
Return to index page 400
Return to index page 399
Return to index page 398
Return to index page 397
Return to index page 396
Return to index page 395
Return to index page 394