divider on windows form?

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

    divider on windows form?

    Hi:

    How would I place a divider on the form where it looks chiseled and thin
    line - they are everywhere in Windows Apps, but cannot find the control to
    put on the form.

    Thanks


  • Ken Tucker [MVP]

    #2
    Re: divider on windows form?

    Hi,

    Take a look at the Splitterbar

    Ken
    ---------------
    "Tarren" <noemailplease@ thankyou> wrote in message
    news:eV5alMTMEH A.624@TK2MSFTNG P11.phx.gbl...[color=blue]
    > Hi:
    >
    > How would I place a divider on the form where it looks chiseled and thin
    > line - they are everywhere in Windows Apps, but cannot find the control to
    > put on the form.
    >
    > Thanks
    >
    >[/color]


    Comment

    • Herfried K. Wagner [MVP]

      #3
      Re: divider on windows form?

      * "Tarren" <noemailplease@ thankyou> scripsit:[color=blue]
      > How would I place a divider on the form where it looks chiseled and thin
      > line - they are everywhere in Windows Apps, but cannot find the control to
      > put on the form.[/color]

      Have a look at the toolbox, there is a Splitter control available. You
      will have to dock the other containers to this control.

      --
      Herfried K. Wagner [MVP]
      <URL:http://dotnet.mvps.org/>

      Comment

      • Jay B. Harlow [MVP - Outlook]

        #4
        Re: divider on windows form?

        Tarren,
        Do you want a visible divider, like the VB6 line control?

        Or do you want a movable divider like the divider between the Folder Tree &
        File List on Windows Explorer?

        For the later see the Splitter control the others suggested.

        For the former see the following articles:
        Find official documentation, practical know-how, and expert guidance for builders working and troubleshooting in Microsoft products.



        I remember an article on using the Windows "STATIC" control to draw the
        line, however I am not finding a link right now.

        Hope this helps
        Jay

        "Tarren" <noemailplease@ thankyou> wrote in message
        news:eV5alMTMEH A.624@TK2MSFTNG P11.phx.gbl...[color=blue]
        > Hi:
        >
        > How would I place a divider on the form where it looks chiseled and thin
        > line - they are everywhere in Windows Apps, but cannot find the control to
        > put on the form.
        >
        > Thanks
        >
        >[/color]


        Comment

        • Éric Moreau

          #5
          Re: divider on windows form?

          Have a look at



          --

          HTH

          Éric Moreau, MCSD
          Conseiller Principal / Senior Consultant
          Concept S2i inc.(www.s2i.com)



          "Tarren" <noemailplease@ thankyou> wrote in message
          news:eV5alMTMEH A.624@TK2MSFTNG P11.phx.gbl...[color=blue]
          > Hi:
          >
          > How would I place a divider on the form where it looks chiseled and thin
          > line - they are everywhere in Windows Apps, but cannot find the control to
          > put on the form.
          >
          > Thanks
          >
          >[/color]


          Comment

          • Cor Ligthert

            #6
            Re: divider on windows form?

            Hi Tarren,

            Because you say that you see that you see them everywhere in windows, I have
            an other answer than the others.

            Do you mean the groupbox?

            You can drag it on a form and than just drag your other controls in it.
            Keep in mind that the groupbox is than the parent of the controls you have
            dragged in it.

            Cor
            [color=blue]
            > How would I place a divider on the form where it looks chiseled and thin
            > line - they are everywhere in Windows Apps, but cannot find the control to
            > put on the form.[/color]


            Comment

            • Herfried K. Wagner [MVP]

              #7
              Re: divider on windows form?

              * "Jay B. Harlow [MVP - Outlook]" <Jay_Harlow_MVP @msn.com> scripsit:[color=blue]
              > I remember an article on using the Windows "STATIC" control to draw the
              > line, however I am not finding a link right now.[/color]

              You can use a label control with width or height set to 2, and
              'BorderStyle' set to 'Fixed3D' to create an inset line.

              --
              Herfried K. Wagner [MVP]
              <URL:http://dotnet.mvps.org/>

              Comment

              • Jay B. Harlow [MVP - Outlook]

                #8
                Re: divider on windows form?

                Herfried,
                The article I'm thinking of actually created a Win32 Line (it did not rely
                on the width & height trick).

                Basically they applied with Win32 style of SS_ETCHEDHORZ to the Win32 Window
                Handle to get a horizontal etched line.

                Basically using one of the following:



                I thought it was an MSDN Magazine article, however I'm not finding it right
                now. I'll see if I can find the link...

                Thanks
                Jay

                "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
                news:c77ont$iki t$2@ID-208219.news.uni-berlin.de...[color=blue]
                > * "Jay B. Harlow [MVP - Outlook]" <Jay_Harlow_MVP @msn.com> scripsit:[color=green]
                > > I remember an article on using the Windows "STATIC" control to draw the
                > > line, however I am not finding a link right now.[/color]
                >
                > You can use a label control with width or height set to 2, and
                > 'BorderStyle' set to 'Fixed3D' to create an inset line.
                >
                > --
                > Herfried K. Wagner [MVP]
                > <URL:http://dotnet.mvps.org/>[/color]


                Comment

                • Jay B. Harlow [MVP - Outlook]

                  #9
                  Re: divider on windows form?

                  Herfried,
                  Found it, check out the following article:



                  Hope this helps
                  Jay

                  "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
                  news:c77ont$iki t$2@ID-208219.news.uni-berlin.de...[color=blue]
                  > * "Jay B. Harlow [MVP - Outlook]" <Jay_Harlow_MVP @msn.com> scripsit:[color=green]
                  > > I remember an article on using the Windows "STATIC" control to draw the
                  > > line, however I am not finding a link right now.[/color]
                  >
                  > You can use a label control with width or height set to 2, and
                  > 'BorderStyle' set to 'Fixed3D' to create an inset line.
                  >
                  > --
                  > Herfried K. Wagner [MVP]
                  > <URL:http://dotnet.mvps.org/>[/color]


                  Comment

                  • Herfried K. Wagner [MVP]

                    #10
                    Re: divider on windows form?

                    Jay,

                    * "Jay B. Harlow [MVP - Outlook]" <Jay_Harlow_MVP @msn.com> scripsit:[color=blue]
                    > Found it, check out the following article:
                    >
                    > http://www.codeproject.com/cs/miscctrl/hvrules1.asp[/color]

                    Interesting, but a lot of work for a little line ;-).

                    --
                    Herfried K. Wagner [MVP]
                    <URL:http://dotnet.mvps.org/>

                    Comment

                    • Herfried K. Wagner [MVP]

                      #11
                      Re: divider on windows form?

                      * "Jay B. Harlow [MVP - Outlook]" <Jay_Harlow_MVP @msn.com> scripsit:[color=blue]
                      > The article I'm thinking of actually created a Win32 Line (it did not rely
                      > on the width & height trick).[/color]

                      I believe, but I wanted to post an alternative solution :-). Thanks for
                      the links!

                      --
                      Herfried K. Wagner [MVP]
                      <URL:http://dotnet.mvps.org/>

                      Comment

                      • Tarren

                        #12
                        Re: divider on windows form?

                        Thanks all - that article looked quite a bit of work - I think I will use
                        the label box solution for this app I am working on and will bookmark the
                        article for the next one. :)


                        "Tarren" <noemailplease@ thankyou> wrote in message
                        news:eV5alMTMEH A.624@TK2MSFTNG P11.phx.gbl...[color=blue]
                        > Hi:
                        >
                        > How would I place a divider on the form where it looks chiseled and thin
                        > line - they are everywhere in Windows Apps, but cannot find the control to
                        > put on the form.
                        >
                        > Thanks
                        >
                        >[/color]


                        Comment

                        Working...