why it's not running

  • Thread starter Thread starter Ganesh
  • Start date Start date
G

Ganesh

i'm new to c#

namespace MessageBoxBuilder
{

using System;

using System.Drawing;

using System.Collections;

using System.ComponentModel;

using System.WinForms;

using System.Data;

using System.IO;



Always i get error at

using System.WinForms; when i run from visual studio


C:\Samples\c#\MessageBoxBuilder\MainForm.cs(7): The type or namespace name
'WinForms' does not exist in the class or namespace 'System' (are you
missing an assembly reference?)
 
thanks for your answer,

i changed winform to Windows.Forms

but still i'm getting the same error

C:\Samples\c#\MessageBoxBuilder\MainForm.cs(7): The type or namespace name
'Windows' does not exist in the class or namespace 'System' (are you missing
an assembly reference?)
 
Ganesh said:
i changed winform to Windows.Forms

but still i'm getting the same error

C:\Samples\c#\MessageBoxBuilder\MainForm.cs(7): The type or
namespace name 'Windows' does not exist in the class or namespace
'System' (are you missing an assembly reference?)

make sure you have a "System.Windows.Forms" reference in your solution
explorer. If you don't right click "References", select "Add Reference"
and under ".NET" tab select "System.Windows.Forms.dll".

HTH
 
Back
Top