Hi every one,

I need to use System.Windows.Documents & System.Web.UI.WebControls namespace in my visual studio Windows Form c# project, they do not found in my refrance. i serched for long time on internet no more satisfactory in results.
can any one helpe me

Best Regards,
IT_Techno

Ensure that you're using at least .net 3.0 and add a reference to System.Windows and System.Web

no iam using .net 2.0, should i use .net 3.0 ?

Yes, they are not available in .net 2.0.

Ensure your target machine is capable of running .net 3.0 and above. If not, I'm afraid you're going to have to write your app without using them.

I have install .net 4.0 for my Pc (windows 7 32 system) I still have no reference for System.Windows.Documents & System.Web.UI.WebControls, why ? how should i have it from another resources ?

You need to set your project to .net 4, right click your project and select properties. Set the Framework to .net 4.0 (NOT CLIENT)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.