load window behind another?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Yang Li Ke

    load window behind another?

    Hi guys,

    let's say I want to load a window behind the main window.
    how do i do it? because right now everytime i do it the main
    window gets behind and the new window get the focus.

    Thank you.


  • Visual Boodu .NET

    #2
    Re: load window behind another?

    Load Form2
    Form2.Show
    Me.SetFocus

    Yang Li Ke wrote:[color=blue]
    > Hi guys,
    >
    > let's say I want to load a window behind the main window.
    > how do i do it? because right now everytime i do it the main
    > window gets behind and the new window get the focus.
    >
    > Thank you.[/color]


    Comment

    • Yang Li Ke

      #3
      Re: load window behind another?

      Hi! Thanx but the problem which I should have stated first is that I call
      each windows like this:

      Dim oForm As form_datas
      Set oForm = New form_datas
      Call oForm.Show
      Set oForm = Nothing

      so all forms are dynamic each time the user presses a button on one of these
      form then there is a new form openning but it should stay behind. the
      problem is that I dont konw the name of that form because they all have the
      same names.

      Thank you for your help.



      "Visual Boodu .NET" <sn@il.mail> wrote in message
      news:kgXnc.3168 7$TT.16323@news-server.bigpond. net.au...[color=blue]
      > Load Form2
      > Form2.Show
      > Me.SetFocus
      >
      > Yang Li Ke wrote:[color=green]
      > > Hi guys,
      > >
      > > let's say I want to load a window behind the main window.
      > > how do i do it? because right now everytime i do it the main
      > > window gets behind and the new window get the focus.
      > >
      > > Thank you.[/color]
      >
      >[/color]


      Comment

      • Bob Butler

        #4
        Re: load window behind another?

        "Yang Li Ke" <yanglike@sympa tico.ca> wrote in message news:<elWnc.937 2$dr1.326039@ne ws20.bellglobal .com>...[color=blue]
        > Hi guys,
        >
        > let's say I want to load a window behind the main window.
        > how do i do it? because right now everytime i do it the main
        > window gets behind and the new window get the focus.[/color]

        the simplest might be to use the ZOrder:
        Form2.Show
        Form2.ZOrder 1

        Comment

        • J French

          #5
          Re: load window behind another?

          On Tue, 11 May 2004 09:16:24 -0400, "Yang Li Ke"
          <yanglike@sympa tico.ca> wrote:
          [color=blue]
          >Hi! Thanx but the problem which I should have stated first is that I call
          >each windows like this:
          >
          > Dim oForm As form_datas
          > Set oForm = New form_datas
          > Call oForm.Show
          > Set oForm = Nothing
          >
          >so all forms are dynamic each time the user presses a button on one of these
          >form then there is a new form openning but it should stay behind. the
          >problem is that I dont konw the name of that form because they all have the
          >same names.[/color]

          Another way of looking at it, is making your original Form stay on top
          of any new forms.

          BringWindowToTo p looks a likely candidate


          Comment

          • Visual Boodu .NET

            #6
            Re: load window behind another?

            You can still use me.setfocus on the form showing the other forms.

            Dim oForm As form_datas
            Set oForm = New form_datas
            Call oForm.Show
            Me.SetFocus
            Set oForm = Nothing

            Yang Li Ke wrote:[color=blue]
            > Hi! Thanx but the problem which I should have stated first is that I
            > call each windows like this:
            >
            > Dim oForm As form_datas
            > Set oForm = New form_datas
            > Call oForm.Show
            > Set oForm = Nothing
            >
            > so all forms are dynamic each time the user presses a button on one
            > of these form then there is a new form openning but it should stay
            > behind. the problem is that I dont konw the name of that form because
            > they all have the same names.
            >
            > Thank you for your help.
            >
            >
            >
            > "Visual Boodu .NET" <sn@il.mail> wrote in message
            > news:kgXnc.3168 7$TT.16323@news-server.bigpond. net.au...[color=green]
            >> Load Form2
            >> Form2.Show
            >> Me.SetFocus
            >>
            >> Yang Li Ke wrote:[color=darkred]
            >>> Hi guys,
            >>>
            >>> let's say I want to load a window behind the main window.
            >>> how do i do it? because right now everytime i do it the main
            >>> window gets behind and the new window get the focus.
            >>>
            >>> Thank you.[/color][/color][/color]


            Comment

            Working...