could u tell me exactly what version of dotnet requried?
Morten Wennevik said:
Are you doing a winform or console application?
If you are doing a winform application, then I'm out of ideas.
If you are doing a console application, then you need to add
System.Windows.Forms.dll to the list of references or Intellisense won't
even show System.[Windows] as a possible choice.
If you have done all that, can create other controls just fine, made sure
you don't have namespace conflict (having your own Application class etc),
then I can't help you any more
I know all of things u said..and I know how I can refrence it..but it can't
find it..even it can't show that in intelligence editor.
Read your code carefully,
if the compiler won't recognize
Application.EnableVisualStyles();
try
System.Windows.Forms.Application.EnableVisualStyles();
If it now works, just add
using System.Windows.Forms;
on top of your code file and you can use the first way of writing it.
Note that you need a reference to System.Windows.Forms.dll to use it.