enableVisualStyles

  • Thread starter Thread starter perspolis
  • Start date Start date
P

perspolis

hi all
I can't use the Application.enableVisualStyle method.
it gives me an error that it can't find a match for it.
I installed dotnet version 1.1..but it still dosen't work..????
 
perspolis said:
hi all
I can't use the Application.enableVisualStyle method.
it gives me an error that it can't find a match for it.
I installed dotnet version 1.1..but it still dosen't work..????
Application.EnableVisualStyles();
Case sensitivity?

JB
 
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.
 
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.
 
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.
 
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.
Morten Wennevik said:
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.



 
Ah, maybe that's it, EnableVisualStyles() is supported only in Framework 1.1



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.
 
You need .NET Framework 1.1 and therefore VS.NET 2003, it won´t work with
VS.NET 2002

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com
 
Back
Top