MS Forms 2.0 Multipage and VB.NET

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

    MS Forms 2.0 Multipage and VB.NET

    Hi,

    I want to use the control MS Forms 2.0 Multipage because it allows to
    display several pages without displaying the Tab on the top (even if in
    design mode).
    However, when i place a simple label on this multipage, the text label
    appears on all Pages...
    like if text label was tied to form and not to multipage.
    (i'm talking about design mode).

    How can i link a control to 1 page under the design mode ?

    thanks a lot,
    Maileen
  • Herfried K. Wagner [MVP]

    #2
    Re: MS Forms 2.0 Multipage and VB.NET

    "Maileen" <nospan@email.c om> schrieb:[color=blue]
    > I want to use the control MS Forms 2.0 Multipage[/color]

    INFO: Usage and Redistribution of FM20.DLL
    <URL:http://support.microso ft.com/?scid=kb;EN-US;224305>

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

    Comment

    • Maileen

      #3
      Re: MS Forms 2.0 Multipage and VB.NET

      thanks a lot about this warning.

      So, in this case how can i do the same thing with Tabcontrol of .NET ?
      for now i just found a work around because thanks TabCOntrol we can not
      hide the tabs :(

      Any ideas ?
      thanks a lot,
      Maileen

      Herfried K. Wagner [MVP] wrote:[color=blue]
      > "Maileen" <nospan@email.c om> schrieb:
      >[color=green]
      >> I want to use the control MS Forms 2.0 Multipage[/color]
      >
      >
      > INFO: Usage and Redistribution of FM20.DLL
      > <URL:http://support.microso ft.com/?scid=kb;EN-US;224305>
      >[/color]

      Comment

      • Herfried K. Wagner [MVP]

        #4
        Re: MS Forms 2.0 Multipage and VB.NET

        "Maileen" <nospan@email.c om> schrieb:[color=blue]
        > So, in this case how can i do the same thing with Tabcontrol of .NET ?
        > for now i just found a work around because thanks TabCOntrol we can not
        > hide the tabs :([/color]

        Why not? I posted a solution yesterday...

        \\\
        Me.TabControl1. Region = _
        New Region( _
        New RectangleF( _
        Me.TabPage1.Lef t, _
        Me.TabPage1.Top , _
        Me.TabPage1.Wid th, _
        Me.TabPage1.Hei ght _
        ) _
        )
        ///

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

        Comment

        • Maileen

          #5
          Re: MS Forms 2.0 Multipage and VB.NET

          Thanks a lot...i already have a work around solution for that...
          however, i would like to know if there's no way to have the same feature
          not only in RUNTIME mode but also in DESIGN TIME mode?

          Maileen

          Herfried K. Wagner [MVP] wrote:[color=blue]
          > "Maileen" <nospan@email.c om> schrieb:
          >[color=green]
          >> So, in this case how can i do the same thing with Tabcontrol of .NET ?
          >> for now i just found a work around because thanks TabCOntrol we can
          >> not hide the tabs :([/color]
          >
          >
          > Why not? I posted a solution yesterday...
          >
          > \\\
          > Me.TabControl1. Region = _
          > New Region( _
          > New RectangleF( _
          > Me.TabPage1.Lef t, _
          > Me.TabPage1.Top , _
          > Me.TabPage1.Wid th, _
          > Me.TabPage1.Hei ght _
          > ) _
          > )
          > ///
          >[/color]

          Comment

          • Maileen

            #6
            Re: MS Forms 2.0 Multipage and VB.NET

            moreover, this work around, just force windows to not redraw the tabs,
            but i don'tt get back the space used by these "hidden" tab...
            just by changing the background color of TabPage, you can see that you
            loose all the space used normally by the tab sheet..
            i used another tip like that :

            where TCPreferences is a TabControl object :

            TCPreferences.A ppearance = TabAppearance.B uttons
            TCPreferences.S izeMode = TabSizeMode.Fix ed
            TCPreferences.I temSize = New Size(0, 1)

            it reduce a much as possible this unused space let by tabs in your case.
            but it's still during the runtime mode...not during design time mode.

            :(

            Maileen

            Herfried K. Wagner [MVP] wrote:[color=blue]
            > "Maileen" <nospan@email.c om> schrieb:
            >[color=green]
            >> So, in this case how can i do the same thing with Tabcontrol of .NET ?
            >> for now i just found a work around because thanks TabCOntrol we can
            >> not hide the tabs :([/color]
            >
            >
            > Why not? I posted a solution yesterday...
            >
            > \\\
            > Me.TabControl1. Region = _
            > New Region( _
            > New RectangleF( _
            > Me.TabPage1.Lef t, _
            > Me.TabPage1.Top , _
            > Me.TabPage1.Wid th, _
            > Me.TabPage1.Hei ght _
            > ) _
            > )
            > ///
            >[/color]

            Comment

            Working...