vb color commondialog box return color if i am selecting cancel in color dialog box.how we can handle this.

commondlg.showcolor
lblcolor.forecolor=commondlg.color

i found the answer...

On Error GoTo ErrHandler
  commondlg.CancelError = True
    commondlg.ShowColor
    lblcolor.BackColor = commondlg.Color
Exit Sub
ErrHandler: