Sorry, maybe I should be a bit more specific.
I am new to .Net. So, my query is no doubt a simple one.
I have the folowing code in the WebForm:
Imports System.Windows.Forms.ColorDialog
....
Private ColorDialog As New Windows.Forms.ColorDialog
The problem I get is I get an error when the button that opens then
ColorDialog is clicked.
This is the error:
It is invalid to show a modal dialog or form when the application is not
running in UserInteractive mode. Specify the ServiceNotification or
DefaultDesktopOnly style to display a notification from a service
application.
The code in the Button Click EventHnadler is:
Private Sub cmdColor_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles cmdColor.Click
ColorDialog.ShowDialog()
If ColorDialog.ShowDialog = Windows.Forms.DialogResult.OK Then
pnlColor.BackColor = ColorDialog.Color
End If
End Sub