Jump to content
Xtreme .Net Talk

New to .Net- Imports System.Windows.Forms does not appear


Recommended Posts

Posted

Hi everyone,

 

I am new to .Net, so please excuse if this problem is a novice problem. I tried to create a DataGrid to update an SQL file on the Web. But I got an error "Type 'TextBox' is not defined." On the net I read that all you had to do was type at the top of the file "Imports System.Windows.Forms". But unfortunatel :confused: y it is not valid when I enter it. In fact it doesn't even acknowledge up to the "Import System.Windows"! P.S. I have the Visual Studio .NET Enterprise Developer Edition.

 

Thanks.

LazRazMataz

Posted

I am new to .Net, so please excuse if this problem is a novice problem. I tried to create a DataGrid to update an SQL file on the Web. But I got an error "Type 'TextBox' is not defined." On the net I read that all you had to do was type at the top of the file "Imports System.Windows.Forms". But unfortunatel :confused: y it is not valid when I enter it. In fact it doesn't even acknowledge up to the "Import System.Windows"!

 

Check that your project also reference System.Windows.Forms.dll

> NeoDataType.net <

Try my Free .Net Reporting Tool!

Posted

Produced another error.

 

Ooops, got another error. Didn't notice but after adding that reference it produced another error. "Value of type 'System.Web.UI.Control' cannot be converted to 'System.Windows.Forms.TextBox'.

 

Thanks for the previous tip anyways.

:D

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...