modal dialog

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

    #1

    modal dialog

    Hi, what is the correct setting to make a dialog modal? i.e. you must enter
    close it before operating on any other screens. Nothing seems to work for me
    in Visual Studio, i try FixedDialog for example yet i can still click past
    it.

    Thanks,
    Nick.


  • Norman Yuan

    #2
    Re: modal dialog

    FixedDialog is Form's FormBorder property, it has nothing to do with showing
    modal form. There are two methods to display a form: Form.Show() and
    Form.ShowDialog (). It is obvious which one gives you a modal form.

    "Nick Hoare" <hoarsepower@ho tmail.com> wrote in message
    news:dwK2b.6519 8$bo1.60933@new s-server.bigpond. net.au...[color=blue]
    > Hi, what is the correct setting to make a dialog modal? i.e. you must[/color]
    enter[color=blue]
    > close it before operating on any other screens. Nothing seems to work for[/color]
    me[color=blue]
    > in Visual Studio, i try FixedDialog for example yet i can still click past
    > it.
    >
    > Thanks,
    > Nick.
    >
    >[/color]


    Comment

    • Gabriele G. Ponti

      #3
      Re: modal dialog

      Nick,

      If you are using Forms, that you use the ShowDialog() method.

      Dim frm As New MyCustomForm
      frm.ShowDialog( )

      Please see the documentation for more details.

      Gabriele

      "Nick Hoare" <hoarsepower@ho tmail.com> wrote in message
      news:dwK2b.6519 8$bo1.60933@new s-server.bigpond. net.au...[color=blue]
      > Hi, what is the correct setting to make a dialog modal? i.e. you must[/color]
      enter[color=blue]
      > close it before operating on any other screens. Nothing seems to work for[/color]
      me[color=blue]
      > in Visual Studio, i try FixedDialog for example yet i can still click past
      > it.
      >
      > Thanks,
      > Nick.
      >
      >[/color]


      Comment

      • Nick Hoare

        #4
        Re: modal dialog

        Beautiful!

        Thanks all,

        until next time....

        Cheers!
        Nick.


        "Eric Cadwell" <ecadwell@no.in sight.spam.com> wrote in message
        news:#hU4Fp#aDH A.2404@TK2MSFTN GP10.phx.gbl...[color=blue]
        > The difference is in the Show method.
        > To show a dialog modally use ShowDialog()
        >
        > HTH,
        > Eric Cadwell
        > http://www.origincontrols.com
        >
        > "Nick Hoare" <hoarsepower@ho tmail.com> wrote in message
        > news:dwK2b.6519 8$bo1.60933@new s-server.bigpond. net.au...[color=green]
        > > Hi, what is the correct setting to make a dialog modal? i.e. you must[/color]
        > enter[color=green]
        > > close it before operating on any other screens. Nothing seems to work[/color][/color]
        for[color=blue]
        > me[color=green]
        > > in Visual Studio, i try FixedDialog for example yet i can still click[/color][/color]
        past[color=blue][color=green]
        > > it.
        > >
        > > Thanks,
        > > Nick.
        > >
        > >[/color]
        >
        >[/color]


        Comment

        • Andrew Hull

          #5
          Re: modal dialog

          Try window.showModa lDialog - thats for Javascript...

          Cheers
          Andrew


          "Nick Hoare" <hoarsepower@ho tmail.com> wrote in message
          news:dwK2b.6519 8$bo1.60933@new s-server.bigpond. net.au...[color=blue]
          > Hi, what is the correct setting to make a dialog modal? i.e. you must[/color]
          enter[color=blue]
          > close it before operating on any other screens. Nothing seems to work for[/color]
          me[color=blue]
          > in Visual Studio, i try FixedDialog for example yet i can still click past
          > it.
          >
          > Thanks,
          > Nick.
          >
          >[/color]


          Comment

          Working...