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:
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.