a bug in the windowState property?

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

    a bug in the windowState property?

    Hi guys,

    I am creating an application in the VB.NET (VS2003). I want the form to be
    maximized all the time. I set the windowState to "Maximized" and I disabled
    the Maximize button.

    When I run the program, the main form covers the taskbar. however, if I
    enable the Maximize button (the rest of the code and the properties are the
    same), it fits nice just above the taskbar.

    anyone hear about this before?

    Ahmed


  • rs

    #2
    Re: a bug in the windowState property?

    The work around I found is to set the maximizebox to false in the load event
    "rs" <aa@d.com> wrote in message news:oq-dnYCpM6jZwGPcRV n-jQ@rogers.com.. .[color=blue]
    > Hi guys,
    >
    > I am creating an application in the VB.NET (VS2003). I want the form to be
    > maximized all the time. I set the windowState to "Maximized" and I
    > disabled the Maximize button.
    >
    > When I run the program, the main form covers the taskbar. however, if I
    > enable the Maximize button (the rest of the code and the properties are
    > the same), it fits nice just above the taskbar.
    >
    > anyone hear about this before?
    >
    > Ahmed
    >[/color]


    Comment

    • Cor Ligthert

      #3
      Re: a bug in the windowState property?

      Ahmed,

      I can not simulate your problem, did you do it with a complete new project?

      Cor


      Comment

      • Herfried K. Wagner [MVP]

        #4
        Re: a bug in the windowState property?

        "rs" <aa@d.com> schrieb:[color=blue]
        > I am creating an application in the VB.NET (VS2003). I want the form to be
        > maximized all the time. I set the windowState to "Maximized" and I
        > disabled the Maximize button.
        >
        > When I run the program, the main form covers the taskbar.[/color]

        Can you post your taskbar settings (auto-hiding, always in the foreground,
        ....)?

        --
        M S Herfried K. Wagner
        M V P <URL:http://dotnet.mvps.org/>
        V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

        Comment

        • rs

          #5
          Re: a bug in the windowState property?

          Yes,
          Create new project
          add a status bar to the form
          set the windowstate to maximized
          set the maximizebox to false
          run the application

          This time I had the taskbar covering the status bar.

          next

          try enabling the maximizebox. it will fit nice and the statusbar will be
          just above the taskbar

          Ahmed
          "Cor Ligthert" <notmyfirstname @planet.nl> wrote in message
          news:uoRYoQ7BFH A.3416@TK2MSFTN GP09.phx.gbl...[color=blue]
          > Ahmed,
          >
          > I can not simulate your problem, did you do it with a complete new
          > project?
          >
          > Cor
          >[/color]


          Comment

          • rs

            #6
            Re: a bug in the windowState property?

            I am using windows XP Pro OS with SP2

            Task bar appearance:

            Lock the taskbar (unchecked)
            Auto-hide (unchecked)
            keep the task bar on top of other windows (checked)
            Groop similar taskbar buttons (uncheck)
            show quick launch (checked)

            Show the clock (checked0
            Hide inactive icons (checked)

            "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
            news:%23TTKRV7B FHA.3596@TK2MSF TNGP12.phx.gbl. ..[color=blue]
            > "rs" <aa@d.com> schrieb:[color=green]
            >> I am creating an application in the VB.NET (VS2003). I want the form to
            >> be maximized all the time. I set the windowState to "Maximized" and I
            >> disabled the Maximize button.
            >>
            >> When I run the program, the main form covers the taskbar.[/color]
            >
            > Can you post your taskbar settings (auto-hiding, always in the foreground,
            > ...)?
            >
            > --
            > M S Herfried K. Wagner
            > M V P <URL:http://dotnet.mvps.org/>
            > V B <URL:http://dotnet.mvps.org/dotnet/faqs/>[/color]


            Comment

            • Cor Ligthert

              #7
              Re: a bug in the windowState property?

              Ahmed,

              I still see the statusbar, not that I don't believe you however I cannot
              simulate it).

              What Net version are you using?

              Cor


              Comment

              • rs

                #8
                Re: a bug in the windowState property?

                v1.1.4322

                I also tried with windows 2000. same result

                "Cor Ligthert" <notmyfirstname @planet.nl> wrote in message
                news:OB6jZr7BFH A.2112@TK2MSFTN GP14.phx.gbl...[color=blue]
                > Ahmed,
                >
                > I still see the statusbar, not that I don't believe you however I cannot
                > simulate it).
                >
                > What Net version are you using?
                >
                > Cor
                >[/color]


                Comment

                • rs

                  #9
                  Re: a bug in the windowState property?

                  Also try minimizing the form then restore it after you run it.

                  "rs" <aa@d.com> wrote in message news:DbudncdOqM G58GPcRVn-vg@rogers.com.. .[color=blue]
                  > v1.1.4322
                  >
                  > I also tried with windows 2000. same result
                  >
                  > "Cor Ligthert" <notmyfirstname @planet.nl> wrote in message
                  > news:OB6jZr7BFH A.2112@TK2MSFTN GP14.phx.gbl...[color=green]
                  >> Ahmed,
                  >>
                  >> I still see the statusbar, not that I don't believe you however I cannot
                  >> simulate it).
                  >>
                  >> What Net version are you using?
                  >>
                  >> Cor
                  >>[/color]
                  >
                  >[/color]


                  Comment

                  • Herfried K. Wagner [MVP]

                    #10
                    Re: a bug in the windowState property?

                    "rs" <aa@d.com> schrieb:[color=blue]
                    >I am using windows XP Pro OS with SP2
                    >
                    > Task bar appearance:
                    >
                    > Lock the taskbar (unchecked)
                    > Auto-hide (unchecked)
                    > keep the task bar on top of other windows (checked)
                    > Groop similar taskbar buttons (uncheck)
                    > show quick launch (checked)
                    >
                    > Show the clock (checked0
                    > Hide inactive icons (checked)[/color]

                    Same settings (Windows XP Professional SP2, German), but I am not able to
                    repro that. In other words, the form does not cover the taskbar when its
                    window state is set to maximized and the maximize button is disabled.

                    --
                    M S Herfried K. Wagner
                    M V P <URL:http://dotnet.mvps.org/>
                    V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

                    Comment

                    • Cor Ligthert

                      #11
                      Re: a bug in the windowState property?

                      Ahmed,

                      I did, do you as well have all SP's loaded especially the Net 1.1 one?



                      I think I cannot help you anymore because I don't have the behaviour
                      although I tried it with a new project exactly as you did.

                      Sorry

                      Cor


                      Comment

                      • rs

                        #12
                        Re: a bug in the windowState property?

                        Thanks Cor, I appreciate it. I am not sure if have all the updates. I will
                        try doing the updates and then check

                        Ahmed
                        "Cor Ligthert" <notmyfirstname @planet.nl> wrote in message
                        news:OlZnCX8BFH A.1392@tk2msftn gp13.phx.gbl...[color=blue]
                        > Ahmed,
                        >
                        > I did, do you as well have all SP's loaded especially the Net 1.1 one?
                        >
                        > http://msdn.microsoft.com/netframewo...tent11sp1.aspx
                        >
                        > I think I cannot help you anymore because I don't have the behaviour
                        > although I tried it with a new project exactly as you did.
                        >
                        > Sorry
                        >
                        > Cor
                        >[/color]


                        Comment

                        • Michael D. Ober

                          #13
                          Re: a bug in the windowState property?

                          Cor,

                          This appears to be a bug in Windows 2000. I have seen non-.NET software do
                          this same thing with no discernable pattern. Sometimes the bottom of a
                          Maximized application window sits behind the task bar, sometimes in front,
                          and occasionally, correctly on top of it. To reproduce, set your task bar
                          to "Always on Top". I don't know if XP and 2003 exhibit the same behavior.

                          Mike Ober.

                          "Cor Ligthert" <notmyfirstname @planet.nl> wrote in message
                          news:OlZnCX8BFH A.1392@tk2msftn gp13.phx.gbl...[color=blue]
                          > Ahmed,
                          >
                          > I did, do you as well have all SP's loaded especially the Net 1.1 one?
                          >
                          >[/color]
                          http://msdn.microsoft.com/netframewo...tent11sp1.aspx[color=blue]
                          >
                          > I think I cannot help you anymore because I don't have the behaviour
                          > although I tried it with a new project exactly as you did.
                          >
                          > Sorry
                          >
                          > Cor
                          >
                          >[/color]



                          Comment

                          • rs

                            #14
                            Re: a bug in the windowState property?

                            Hi Mike,

                            It does. I am using windows XP Pro. I also tried it on Win2k (work computer)
                            and XP Home (on a toshiba laptop). same problem.

                            Ahmed
                            "Michael D. Ober" <obermd.@.alum. mit.edu.nospam> wrote in message
                            news:E9ELd.3100 $Nn1.2422@newsr ead1.news.pas.e arthlink.net...[color=blue]
                            > Cor,
                            >
                            > This appears to be a bug in Windows 2000. I have seen non-.NET software
                            > do
                            > this same thing with no discernable pattern. Sometimes the bottom of a
                            > Maximized application window sits behind the task bar, sometimes in front,
                            > and occasionally, correctly on top of it. To reproduce, set your task bar
                            > to "Always on Top". I don't know if XP and 2003 exhibit the same
                            > behavior.
                            >
                            > Mike Ober.
                            >
                            > "Cor Ligthert" <notmyfirstname @planet.nl> wrote in message
                            > news:OlZnCX8BFH A.1392@tk2msftn gp13.phx.gbl...[color=green]
                            >> Ahmed,
                            >>
                            >> I did, do you as well have all SP's loaded especially the Net 1.1 one?
                            >>
                            >>[/color]
                            > http://msdn.microsoft.com/netframewo...tent11sp1.aspx[color=green]
                            >>
                            >> I think I cannot help you anymore because I don't have the behaviour
                            >> although I tried it with a new project exactly as you did.
                            >>
                            >> Sorry
                            >>
                            >> Cor
                            >>
                            >>[/color]
                            >
                            >
                            >[/color]


                            Comment

                            Working...