John Smith John Smith - 6 months ago 21
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?



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.