Form Maximize problem

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

    Form Maximize problem

    Hi,

    I have on form MenuBar, Toolbar, and Grid control.
    Form property is set to form opens as Maximized.

    Form maximizes through whole screen, but I don't see bottom part of grid,
    because TaskBar (of Windows) is above grid. Why form maximizes below
    Taskbar?
    How to maximize form so that form is resized to Taskbar, but not further,
    because bottom part of form will be below Taskbar?

    I hope I explained well. Your help is appreciated.

    Thanks,
    Marco


  • PiotrKolodziej

    #2
    Re: Form Maximize problem

    I had once the same problem.
    Solution was to disable "autohide" feaure of windows taskbar.

    PK


    Comment

    • John

      #3
      Re: Form Maximize problem

      >I had once the same problem.[color=blue]
      > Solution was to disable "autohide" feaure of windows taskbar.[/color]

      I don't know if it is good solution.
      There is option Keep the Taskbar on top of other Windows, and it is
      logically to be enabled, because user can switch from one program to
      another.
      It is not good to disable this for user.

      Is there some other way to do make this work, probably there is.

      If someone can give more advise to this.

      Thanks


      Comment

      • John

        #4
        Re: Form Maximize problem

        Addition to previous replies, is there a way to find out TaskBar Height.
        Then, we could set Form_Resize = Screen.Height - Taskbar.Height

        What do you think?

        Thanks
        [color=blue][color=green]
        > >I had once the same problem.
        >> Solution was to disable "autohide" feaure of windows taskbar.[/color]
        >
        > I don't know if it is good solution.
        > There is option Keep the Taskbar on top of other Windows, and it is
        > logically to be enabled, because user can switch from one program to
        > another.
        > It is not good to disable this for user.
        >
        > Is there some other way to do make this work, probably there is.
        >
        > If someone can give more advise to this.
        >
        > Thanks[/color]


        Comment

        • PiotrKolodziej

          #5
          Re: Form Maximize problem

          It's not good solution.
          There always must be better.


          Comment

          • PiotrKolodziej

            #6
            Re: Form Maximize problem

            Click menu start/settings/taskbar and menu start
            There is an opt. autohide taskbar.

            Try to play with it.


            Comment

            • John

              #7
              Re: Form Maximize problem

              > Click menu start/settings/taskbar and menu start[color=blue]
              > There is an opt. autohide taskbar.
              >
              > Try to play with it.[/color]

              Yes, but I don't want to change user preferences. Is user likes to have
              Taskbar on top, I don't want to change it.
              There is solution to show form maximized to working area and I think it is
              good solution, but if user moves Taskbar or changes height, then it will not
              display ok.

              Thanks


              Comment

              • Nik

                #8
                Re: Form Maximize problem



                "John" <John123@hotmai l.com> wrote in message
                news:dshvu8$q3q $1@ss405.t-com.hr...[color=blue][color=green]
                >> Click menu start/settings/taskbar and menu start
                >> There is an opt. autohide taskbar.
                >>
                >> Try to play with it.[/color]
                >
                > Yes, but I don't want to change user preferences. Is user likes to have
                > Taskbar on top, I don't want to change it.
                > There is solution to show form maximized to working area and I think it is
                > good solution, but if user moves Taskbar or changes height, then it will
                > not display ok.
                >
                > Thanks[/color]
                You're looking at this the wrong way round. If the user has an autohide
                task bar, they have chosen - and will expect - the taskbar to cover the edge
                of maximized applications when it emerges from hiding. This is normal, it
                would arguably be bad design to try to interfere with it.


                Comment

                • John

                  #9
                  Re: Form Maximize problem

                  > You're looking at this the wrong way round. If the user has an autohide[color=blue]
                  > task bar, they have chosen - and will expect - the taskbar to cover the
                  > edge of maximized applications when it emerges from hiding. This is
                  > normal, it would arguably be bad design to try to interfere with it.[/color]

                  Yes, but what if user has enabled option Keep Taskbar on top of the other
                  windows, which is default option in Windows, how will you make that form
                  resize ok?

                  Thanks


                  Comment

                  • erman.olca@gmail.com

                    #10
                    Re: Form Maximize problem


                    John wrote:[color=blue][color=green]
                    > > You're looking at this the wrong way round. If the user has an autohide
                    > > task bar, they have chosen - and will expect - the taskbar to cover the
                    > > edge of maximized applications when it emerges from hiding. This is
                    > > normal, it would arguably be bad design to try to interfere with it.[/color]
                    >
                    > Yes, but what if user has enabled option Keep Taskbar on top of the other
                    > windows, which is default option in Windows, how will you make that form
                    > resize ok?
                    >
                    > Thanks[/color]

                    hi,

                    switch design view and set the window start position to maximized then
                    disable the maximize of your form. Run it. You will see it on the
                    taskbar. OK?

                    Comment

                    • John

                      #11
                      Re: Form Maximize problem

                      > switch design view and set the window start position to maximized then[color=blue]
                      > disable the maximize of your form. Run it. You will see it on the
                      > taskbar. OK?[/color]

                      No, I don't have window start position option Maximize. I am using VB 2005.
                      Can you specify exactly what properties to choose?

                      Thanks


                      Comment

                      • erman.olca@gmail.com

                        #12
                        Re: Form Maximize problem

                        oops sory,

                        property is Window State. you will see maximized item in the list.

                        Comment

                        • John

                          #13
                          Re: Form Maximize problem

                          > property is Window State. you will see maximized item in the list.

                          I think it is not solution, please read post from beginning.

                          Thanks


                          Comment

                          • Mark Ingram

                            #14
                            Re: Form Maximize problem

                            John wrote:[color=blue]
                            > Hi,
                            >
                            > I have on form MenuBar, Toolbar, and Grid control.
                            > Form property is set to form opens as Maximized.
                            >
                            > Form maximizes through whole screen, but I don't see bottom part of grid,
                            > because TaskBar (of Windows) is above grid. Why form maximizes below
                            > Taskbar?
                            > How to maximize form so that form is resized to Taskbar, but not further,
                            > because bottom part of form will be below Taskbar?
                            >
                            > I hope I explained well. Your help is appreciated.
                            >
                            > Thanks,
                            > Marco
                            >
                            >[/color]

                            The answer (i think) you are looking for is:

                            this.MaximizedB ounds = SystemInformati on.WorkingArea;

                            That tells your window how much room to take up when it is maximised.
                            The working area is the whole desktop minus the taskbar.

                            HTH

                            Comment

                            Working...