Open new form in "modal" style...

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

    Open new form in "modal" style...

    Hello all:

    Yesterday I put this post regarding the query as to how to open a new form
    in "modal" style.

    I am calling the form in the following way:

    dim frm as form2()
    frm = new form2()
    frm.show

    Where and how should I mention to open form in "modal" sytle.

    Thanks!

    SENDER (Remember me...)



  • CJ Taylor

    #2
    Re: Open new form in "modal&quo t; style...

    frm.showDialog


    "I_AM_DON_AND_Y OU?" <user@domain.co m> wrote in message
    news:eRlGDSnjDH A.1456@tk2msftn gp13.phx.gbl...[color=blue]
    > Hello all:
    >
    > Yesterday I put this post regarding the query as to how to open a new form
    > in "modal" style.
    >
    > I am calling the form in the following way:
    >
    > dim frm as form2()
    > frm = new form2()
    > frm.show
    >
    > Where and how should I mention to open form in "modal" sytle.
    >
    > Thanks!
    >
    > SENDER (Remember me...)
    >
    >
    >[/color]


    Comment

    • Tom Spink

      #3
      Re: Open new form in &quot;modal&quo t; style...

      Hi Don,

      frm.ShowDialog( )

      Note, if you have any buttons on your form and you set the dialog result
      property, then those buttons will automatically close the form and return
      the DialogResult property value in the ShowDialog method:

      Dim drResult As DialogResult = frm.ShowDialog( )

      If drResult = DialogResult.OK Then
      ...
      Else
      ...
      End If

      --
      HTH,
      -- Tom Spink, Über Geek

      Please respond to the newsgroup,
      so all can benefit

      " System.Reflecti on Master "

      ==== Converting to 2002 ====
      Remove inline declarations


      "I_AM_DON_AND_Y OU?" <user@domain.co m> wrote in message
      news:eRlGDSnjDH A.1456@tk2msftn gp13.phx.gbl...[color=blue]
      > Hello all:
      >
      > Yesterday I put this post regarding the query as to how to open a new form
      > in "modal" style.
      >
      > I am calling the form in the following way:
      >
      > dim frm as form2()
      > frm = new form2()
      > frm.show
      >
      > Where and how should I mention to open form in "modal" sytle.
      >
      > Thanks!
      >
      > SENDER (Remember me...)
      >
      >
      >[/color]


      Comment

      • Herfried K. Wagner [MVP]

        #4
        Re: Open new form in &quot;modal&quo t; style...

        * "CJ Taylor" <nospam@blowgoa ts.com> scripsit:[color=blue]
        > frm.showDialog[/color]

        'showDialog'... we are not using Java...

        --
        Herfried K. Wagner
        MVP · VB Classic, VB.NET
        <http://www.mvps.org/dotnet>

        Comment

        • I_AM_DON_AND_YOU?

          #5
          Re: Open new form in &quot;modal&quo t; style...

          but it works...

          I used this:
          frm.showdialog( )

          and it opened in "modal" form....


          "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
          news:bm47vn$i8j 56$1@ID-208219.news.uni-berlin.de...[color=blue]
          > * "CJ Taylor" <nospam@blowgoa ts.com> scripsit:[color=green]
          > > frm.showDialog[/color]
          >
          > 'showDialog'... we are not using Java...
          >
          > --
          > Herfried K. Wagner
          > MVP · VB Classic, VB.NET
          > <http://www.mvps.org/dotnet>[/color]


          Comment

          • Herfried K. Wagner [MVP]

            #6
            Re: Open new form in &quot;modal&quo t; style...

            * "I_AM_DON_AND_Y OU?" <user@domain.co m> scripsit:[color=blue]
            > but it works...
            >
            > I used this:
            > frm.showdialog( )
            >
            > and it opened in "modal" form....[/color]

            You are right, nevertheless the method's name is 'ShowDialog' and not 'showDialog'.

            --
            Herfried K. Wagner
            MVP · VB Classic, VB.NET
            <http://www.mvps.org/dotnet>

            Comment

            • I_AM_DON_AND_YOU?

              #7
              Re: Open new form in &quot;modal&quo t; style...

              are you saying the difference is in the UPPER "S" and LOWER "s" ?


              "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
              news:bm48en$ilg c5$2@ID-208219.news.uni-berlin.de...[color=blue]
              > * "I_AM_DON_AND_Y OU?" <user@domain.co m> scripsit:[color=green]
              > > but it works...
              > >
              > > I used this:
              > > frm.showdialog( )
              > >
              > > and it opened in "modal" form....[/color]
              >
              > You are right, nevertheless the method's name is 'ShowDialog' and not[/color]
              'showDialog'.[color=blue]
              >
              > --
              > Herfried K. Wagner
              > MVP · VB Classic, VB.NET
              > <http://www.mvps.org/dotnet>[/color]


              Comment

              • CJ Taylor

                #8
                Re: Open new form in &quot;modal&quo t; style...

                No...

                Just getting a rise out of me. =)

                Thanks Herfried. =)

                CJ

                "I_AM_DON_AND_Y OU?" <user@domain.co m> wrote in message
                news:OqSDgHpjDH A.2012@TK2MSFTN GP12.phx.gbl...[color=blue]
                > are you saying the difference is in the UPPER "S" and LOWER "s" ?
                >
                >
                > "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
                > news:bm48en$ilg c5$2@ID-208219.news.uni-berlin.de...[color=green]
                > > * "I_AM_DON_AND_Y OU?" <user@domain.co m> scripsit:[color=darkred]
                > > > but it works...
                > > >
                > > > I used this:
                > > > frm.showdialog( )
                > > >
                > > > and it opened in "modal" form....[/color]
                > >
                > > You are right, nevertheless the method's name is 'ShowDialog' and not[/color]
                > 'showDialog'.[color=green]
                > >
                > > --
                > > Herfried K. Wagner
                > > MVP · VB Classic, VB.NET
                > > <http://www.mvps.org/dotnet>[/color]
                >
                >[/color]


                Comment

                • Cor

                  #9
                  Re: Open new form in &quot;modal&quo t; style...


                  reference by value[color=blue]
                  > You are right, nevertheless the method's name is 'ShowDialog' and not[/color]
                  'showDialog'.[color=blue]
                  >[/color]
                  Are YOU saying there is a difference between uper and lower case.

                  Brutus
                  :-)
                  Cor


                  Comment

                  • Herfried K. Wagner [MVP]

                    #10
                    Re: Open new form in &quot;modal&quo t; style...

                    * "Cor" <non@non.com> scripsit:[color=blue][color=green]
                    > > You are right, nevertheless the method's name is 'ShowDialog' and not
                    > > 'showDialog'.
                    > >[/color]
                    > Are YOU saying there is a difference between uper and lower case.
                    >
                    > Brutus
                    > :-)[/color]

                    ROFL

                    --
                    Herfried K. Wagner
                    MVP · VB Classic, VB.NET
                    <http://www.mvps.org/dotnet>

                    Comment

                    • Steph Zielenski

                      #11
                      Re: Open new form in &quot;modal&quo t; style...

                      Hi Sender,

                      Rather than call the Show method, you can call the ShowDialog
                      function. If I remember correctly, that will be modal within the
                      application, but it will not grab focus from another application.

                      HTH.

                      --
                      Steph Zielenski

                      Comment

                      • I_AM_DON_AND_YOU?

                        #12
                        Re: Open new form in &quot;modal&quo t; style...

                        What is ROFL ?
                        "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
                        news:bm4bna$ivu lc$1@ID-208219.news.uni-berlin.de...[color=blue]
                        > * "Cor" <non@non.com> scripsit:[color=green][color=darkred]
                        > > > You are right, nevertheless the method's name is 'ShowDialog' and not
                        > > > 'showDialog'.
                        > > >[/color]
                        > > Are YOU saying there is a difference between uper and lower case.
                        > >
                        > > Brutus
                        > > :-)[/color]
                        >
                        > ROFL
                        >
                        > --
                        > Herfried K. Wagner
                        > MVP · VB Classic, VB.NET
                        > <http://www.mvps.org/dotnet>[/color]


                        Comment

                        • CJ Taylor

                          #13
                          Re: Open new form in &quot;modal&quo t; style...

                          Hehe

                          Rolling On Floor Laughing...

                          us nerds...


                          =)


                          "I_AM_DON_AND_Y OU?" <user@domain.co m> wrote in message
                          news:OAt6bzpjDH A.360@TK2MSFTNG P12.phx.gbl...[color=blue]
                          > What is ROFL ?
                          > "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
                          > news:bm4bna$ivu lc$1@ID-208219.news.uni-berlin.de...[color=green]
                          > > * "Cor" <non@non.com> scripsit:[color=darkred]
                          > > > > You are right, nevertheless the method's name is 'ShowDialog' and[/color][/color][/color]
                          not[color=blue][color=green][color=darkred]
                          > > > > 'showDialog'.
                          > > > >
                          > > > Are YOU saying there is a difference between uper and lower case.
                          > > >
                          > > > Brutus
                          > > > :-)[/color]
                          > >
                          > > ROFL
                          > >
                          > > --
                          > > Herfried K. Wagner
                          > > MVP · VB Classic, VB.NET
                          > > <http://www.mvps.org/dotnet>[/color]
                          >
                          >[/color]


                          Comment

                          • Tom Spink

                            #14
                            Re: Open new form in &quot;modal&quo t; style...

                            Hi Cor,


                            Yes there is when it comes to camel casing.

                            In my infinite wisdom, I hereby BAN all camel casing from appearing in any
                            of my posts, it will now appear as asterisks. I'm sure you'll agree
                            Herfried.

                            --
                            HTH,
                            -- Tom Spink, Über Geek

                            Please respond to the newsgroup,
                            so all can benefit

                            " System.Reflecti on Master "

                            ==== Converting to 2002 ====
                            Remove inline declarations


                            "Cor" <non@non.com> wrote in message
                            news:3f85b096$0 $21755$48b97d01 @reader20.wxs.n l...[color=blue]
                            >
                            > reference by value[color=green]
                            > > You are right, nevertheless the method's name is 'ShowDialog' and not[/color]
                            > '**********'.[color=green]
                            > >[/color]
                            > Are YOU saying there is a difference between uper and lower case.
                            >
                            > Brutus
                            > :-)
                            > Cor
                            >
                            >[/color]


                            Comment

                            • Fergus Cooney

                              #15
                              Re: Open new form in &quot;modal&quo t; style...

                              Hi Don,

                              Great name - You're not going to miss that in a search!!

                              ;-)

                              Regards,
                              Fergus


                              Comment

                              Working...