error while referencing system.windows.forms.dll
hi all,
I am colordialog control to show solor palette. following is the code i am using.
Imports System.Data.SqlClient
Imports System.Drawing
Imports System.Windows.Forms
Imports System.Web
Imports System.Data.DataRowView
Imports System.Web.SessionState
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports System.Web.UI.HtmlControls
Public Class newdev
Inherits System.Web.UI.Page
Private dlgcolor As ColorDialog
Protected WithEvents lblcolor As System.Web.UI.WebControls.Label
Protected WithEvents lblerr As System.Web.UI.WebControls.Label
Protected WithEvents txtdevcode As System.Web.UI.WebControls.TextBox
Protected WithEvents txtdevname As System.Web.UI.WebControls.TextBox
Protected WithEvents Button1 As System.Web.UI.WebControls.Button
Protected WithEvents btnshow As System.Web.UI.WebControls.ImageButton
Protected WithEvents txtcolor As System.Web.UI.HtmlControls.HtmlInputText
Protected WithEvents Button2 As System.Web.UI.WebControls.Button
#Region " Web Form Designer Generated Code "
'This call is required by the Web Form Designer.
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
End Sub
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeComponent()
End Sub
#End Region
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
dlgcolor = New ColorDialog()
End Sub
Private Sub btnshow_Click(ByVal sender As System.Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles btnshow.Click
dlgcolor.ShowDialog()
End Sub
End Class
when I run the application and click on the button to view the dialogbox i am getting error
Server application unavailable
Can anybody help me
|