Sub Dialog_ColorPicker(Title As String, Default As Long) As Long
Dim dlg As ColorPickerDialog
Dim res As Int
dlg.RGB = Default
res = dlg.Show(Title, "OK", "", "", Null)
If res = DialogResponse.POSITIVE Then
Return dlg.RGB
Else
Return Default
End If
End Sub