p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
I forgot my password Register Now
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.

Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 28th, 2006, 06:21 AM
Authorized User
 
Join Date: Mar 2006
Location: pune, Maharashtra, India.
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old March 28th, 2006, 03:11 PM
Wrox Author
Points: 12,827, Level: 49
Points: 12,827, Level: 49 Points: 12,827, Level: 49 Points: 12,827, Level: 49
Activity: 15%
Activity: 15% Activity: 15% Activity: 15%
 
Join Date: Oct 2005
Location: Akron, Ohio, USA.
Posts: 4,029
Thanks: 1
Thanked 42 Times in 42 Posts
Send a message via AIM to dparsons
Default

WindowsForms != WebForms. You can host winforms inside of webforms and the methodology to doing so is like calling a COM object (You have compile the file and then call it from your webform using the object tag)

"The one language all programmers understand is profanity."
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble referencing a DLL in VS2005 sgurkin Visual Studio 2005 0 November 5th, 2008 12:53 PM
where is my System.Windows.Forms.MessageBox? IZRAILEVICH1 C# 2005 3 November 14th, 2005 03:38 AM
where is my System.Windows.Forms.MessageBox? IZRAILEVICH1 General .NET 2 May 29th, 2005 10:30 PM
Referencing a spreadsheet from an ActiveX DLL James Diamond Excel VBA 2 January 23rd, 2004 07:21 AM
Referencing an ActiveX DLL from Excel james gold Excel VBA 1 September 10th, 2003 11:41 AM



All times are GMT -4. The time now is 05:00 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc