John Smith John Smith - 1 year ago 77
C# Question

c#, 'Forms' does not exist in the namespace

I have just started working on c#, and was fiddling with some code sample that I got from some forum.

This code is using a namespace

for which I am getting an error:
Forms does not exist in the namespace
. Also I am getting some error related to undefined functions for
which I believe to be in the
name space.

I am using visual studio 10 (with .net frame work 4.0). Any idea how to fix this error?


Answer Source

Expand the project in Solution Tree, right click on References, Add Reference, Select System.Windows.Forms on Framework tab.

You need to add reference to some non-default assemblies sometimes.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download