enableVisualStyles

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • perspolis

    enableVisualStyles

    hi all
    I can't use the Application.ena bleVisualStyle 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..????


  • John B

    #2
    Re: enableVisualSty les

    perspolis wrote:[color=blue]
    > hi all
    > I can't use the Application.ena bleVisualStyle 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..????
    >
    >[/color]
    Application.Ena bleVisualStyles ();
    Case sensitivity?

    JB

    Comment

    • perspolis

      #3
      Re: enableVisualSty les

      I know..I do it case sensitivity..bu t it still gives me an error..

      "John B" <jbngspam@yahoo .com> wrote in message
      news:42957653$0 $79466$14726298 @news.sunsite.d k...[color=blue]
      > perspolis wrote:[color=green]
      > > hi all
      > > I can't use the Application.ena bleVisualStyle 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..????
      > >
      > >[/color]
      > Application.Ena bleVisualStyles ();
      > Case sensitivity?
      >
      > JB[/color]


      Comment

      • Morten Wennevik

        #4
        Re: enableVisualSty les

        Read your code carefully,

        if the compiler won't recognize

        Application.Ena bleVisualStyles ();

        try

        System.Windows. Forms.Applicati on.EnableVisual Styles();

        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.



        On Thu, 26 May 2005 09:53:59 +0200, perspolis <rezarms@hotmai l.com> wrote:
        [color=blue]
        > I know..I do it case sensitivity..bu t it still gives me an error..
        >
        > "John B" <jbngspam@yahoo .com> wrote in message
        > news:42957653$0 $79466$14726298 @news.sunsite.d k...[color=green]
        >> perspolis wrote:[color=darkred]
        >> > hi all
        >> > I can't use the Application.ena bleVisualStyle 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..????
        >> >
        >> >[/color]
        >> Application.Ena bleVisualStyles ();
        >> Case sensitivity?
        >>
        >> JB[/color]
        >
        >
        >[/color]



        --
        Happy coding!
        Morten Wennevik [C# MVP]

        Comment

        • perspolis

          #5
          Re: enableVisualSty les

          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" <MortenWennevik @hotmail.com> wrote in message
          news:op.srdj01a pklbvpo@stone.. .[color=blue]
          > Read your code carefully,
          >
          > if the compiler won't recognize
          >
          > Application.Ena bleVisualStyles ();
          >
          > try
          >
          > System.Windows. Forms.Applicati on.EnableVisual Styles();
          >
          > 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.
          >
          >
          >
          > On Thu, 26 May 2005 09:53:59 +0200, perspolis <rezarms@hotmai l.com> wrote:
          >[color=green]
          > > I know..I do it case sensitivity..bu t it still gives me an error..
          > >
          > > "John B" <jbngspam@yahoo .com> wrote in message
          > > news:42957653$0 $79466$14726298 @news.sunsite.d k...[color=darkred]
          > >> perspolis wrote:
          > >> > hi all
          > >> > I can't use the Application.ena bleVisualStyle 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.Ena bleVisualStyles ();
          > >> Case sensitivity?
          > >>
          > >> JB[/color]
          > >
          > >
          > >[/color]
          >
          >
          >
          > --
          > Happy coding!
          > Morten Wennevik [C# MVP][/color]


          Comment

          • Morten Wennevik

            #6
            Re: enableVisualSty les

            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 :(

            On Thu, 26 May 2005 11:23:44 +0200, perspolis <rezarms@hotmai l.com> wrote:
            [color=blue]
            > 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" <MortenWennevik @hotmail.com> wrote in message
            > news:op.srdj01a pklbvpo@stone.. .[color=green]
            >> Read your code carefully,
            >>
            >> if the compiler won't recognize
            >>
            >> Application.Ena bleVisualStyles ();
            >>
            >> try
            >>
            >> System.Windows. Forms.Applicati on.EnableVisual Styles();
            >>
            >> 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.
            >>
            >>
            >>
            >> On Thu, 26 May 2005 09:53:59 +0200, perspolis <rezarms@hotmai l.com> wrote:
            >>[color=darkred]
            >> > I know..I do it case sensitivity..bu t it still gives me an error..
            >> >
            >> > "John B" <jbngspam@yahoo .com> wrote in message
            >> > news:42957653$0 $79466$14726298 @news.sunsite.d k...
            >> >> perspolis wrote:
            >> >> > hi all
            >> >> > I can't use the Application.ena bleVisualStyle 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.Ena bleVisualStyles ();
            >> >> Case sensitivity?
            >> >>
            >> >> JB
            >> >
            >> >
            >> >[/color]
            >>
            >>
            >>
            >> --
            >> Happy coding!
            >> Morten Wennevik [C# MVP][/color]
            >
            >
            >[/color]



            --
            Happy coding!
            Morten Wennevik [C# MVP]

            Comment

            • perspolis

              #7
              Re: enableVisualSty les

              could u tell me exactly what version of dotnet requried?
              "Morten Wennevik" <MortenWennevik @hotmail.com> wrote in message
              news:op.srdoaat dklbvpo@stone.. .[color=blue]
              > 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[/color]
              System.Windows. Forms.dll to the list of references or Intellisense won't
              even show System.[Windows] as a possible choice.[color=blue]
              >
              > If you have done all that, can create other controls just fine, made sure[/color]
              you don't have namespace conflict (having your own Application class etc),
              then I can't help you any more :([color=blue]
              >
              > On Thu, 26 May 2005 11:23:44 +0200, perspolis <rezarms@hotmai l.com> wrote:
              >[color=green]
              > > I know all of things u said..and I know how I can refrence it..but it[/color][/color]
              can't[color=blue][color=green]
              > > find it..even it can't show that in intelligence editor.
              > > "Morten Wennevik" <MortenWennevik @hotmail.com> wrote in message
              > > news:op.srdj01a pklbvpo@stone.. .[color=darkred]
              > >> Read your code carefully,
              > >>
              > >> if the compiler won't recognize
              > >>
              > >> Application.Ena bleVisualStyles ();
              > >>
              > >> try
              > >>
              > >> System.Windows. Forms.Applicati on.EnableVisual Styles();
              > >>
              > >> 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.
              > >>
              > >>
              > >>
              > >> On Thu, 26 May 2005 09:53:59 +0200, perspolis <rezarms@hotmai l.com>[/color][/color][/color]
              wrote:[color=blue][color=green][color=darkred]
              > >>
              > >> > I know..I do it case sensitivity..bu t it still gives me an error..
              > >> >
              > >> > "John B" <jbngspam@yahoo .com> wrote in message
              > >> > news:42957653$0 $79466$14726298 @news.sunsite.d k...
              > >> >> perspolis wrote:
              > >> >> > hi all
              > >> >> > I can't use the Application.ena bleVisualStyle 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.Ena bleVisualStyles ();
              > >> >> Case sensitivity?
              > >> >>
              > >> >> JB
              > >> >
              > >> >
              > >> >
              > >>
              > >>
              > >>
              > >> --
              > >> Happy coding!
              > >> Morten Wennevik [C# MVP][/color]
              > >
              > >
              > >[/color]
              >
              >
              >
              > --
              > Happy coding!
              > Morten Wennevik [C# MVP][/color]


              Comment

              • Morten Wennevik

                #8
                Re: enableVisualSty les

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



                On Thu, 26 May 2005 12:47:54 +0200, perspolis <rezarms@hotmai l.com> wrote:
                [color=blue]
                > could u tell me exactly what version of dotnet requried?
                > "Morten Wennevik" <MortenWennevik @hotmail.com> wrote in message
                > news:op.srdoaat dklbvpo@stone.. .[color=green]
                >> 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[/color]
                > System.Windows. Forms.dll to the list of references or Intellisense won't
                > even show System.[Windows] as a possible choice.[color=green]
                >>
                >> If you have done all that, can create other controls just fine, made sure[/color]
                > you don't have namespace conflict (having your own Application class etc),
                > then I can't help you any more :([color=green]
                >>
                >> On Thu, 26 May 2005 11:23:44 +0200, perspolis <rezarms@hotmai l.com> wrote:
                >>[color=darkred]
                >> > I know all of things u said..and I know how I can refrence it..but it[/color][/color]
                > can't[color=green][color=darkred]
                >> > find it..even it can't show that in intelligence editor.
                >> > "Morten Wennevik" <MortenWennevik @hotmail.com> wrote in message
                >> > news:op.srdj01a pklbvpo@stone.. .
                >> >> Read your code carefully,
                >> >>
                >> >> if the compiler won't recognize
                >> >>
                >> >> Application.Ena bleVisualStyles ();
                >> >>
                >> >> try
                >> >>
                >> >> System.Windows. Forms.Applicati on.EnableVisual Styles();
                >> >>
                >> >> 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.
                >> >>
                >> >>
                >> >>
                >> >> On Thu, 26 May 2005 09:53:59 +0200, perspolis <rezarms@hotmai l.com>[/color][/color]
                > wrote:[color=green][color=darkred]
                >> >>
                >> >> > I know..I do it case sensitivity..bu t it still gives me an error..
                >> >> >
                >> >> > "John B" <jbngspam@yahoo .com> wrote in message
                >> >> > news:42957653$0 $79466$14726298 @news.sunsite.d k...
                >> >> >> perspolis wrote:
                >> >> >> > hi all
                >> >> >> > I can't use the Application.ena bleVisualStyle 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.Ena bleVisualStyles ();
                >> >> >> Case sensitivity?
                >> >> >>
                >> >> >> JB
                >> >> >
                >> >> >
                >> >> >
                >> >>
                >> >>
                >> >>
                >> >> --
                >> >> Happy coding!
                >> >> Morten Wennevik [C# MVP]
                >> >
                >> >
                >> >[/color]
                >>
                >>
                >>
                >> --
                >> Happy coding!
                >> Morten Wennevik [C# MVP][/color]
                >
                >
                >[/color]



                --
                Happy coding!
                Morten Wennevik [C# MVP]

                Comment

                • Carlos J. Quintero [.NET MVP]

                  #9
                  Re: enableVisualSty les

                  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:
                  MZ-Tools has a single goal: To make your everyday programming life easier. As an add-in to several Integrated Development Environment (IDEs) from Microsoft, MZ-Tools adds new menus and toolbars to them that provide many new productivity features.


                  "perspolis" <rezarms@hotmai l.com> escribió en el mensaje
                  news:uxJmhBeYFH A.228@TK2MSFTNG P12.phx.gbl...[color=blue]
                  > could u tell me exactly what version of dotnet requried?[/color]


                  Comment

                  Working...