Forms question

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

    Forms question

    I have a program written in VB6 that has a main form with a menu bar.
    Depending on the action of the user other forms can be loaded on top of the
    main form ( for user input and info, etc.) leaving the menu bar visible. How
    can I make the loaded forms follow the main form when the main form is moved
    around the desktop area?
    I appreciate your time.

    --
    rvd


  • Verne

    #2
    Re: Forms question

    One of two things if my memory serves me rightly. I'm 75 and almost
    higher so mine isn't always the best. When you want to not see the
    othere forms simply have them go invisable and only appear when you
    need them. The second is to use a File type form that allows as many
    files as you desire. I use this with my Addressbook program that I
    couldn't be without. You can move it anywhere you wish and all goes
    along. I use six pages.

    Verne

    On Tue, 16 Nov 2004 12:50:27 GMT, "rv daffin" <dink@daffin.ne t> wrote:
    [color=blue]
    >I have a program written in VB6 that has a main form with a menu bar.
    >Depending on the action of the user other forms can be loaded on top of the
    >main form ( for user input and info, etc.) leaving the menu bar visible. How
    >can I make the loaded forms follow the main form when the main form is moved
    >around the desktop area?
    >I appreciate your time.[/color]

    Comment

    • Rick Rothstein

      #3
      Re: Forms question

      > I have a program written in VB6 that has a main form with a menu bar.[color=blue]
      > Depending on the action of the user other forms can be loaded on top[/color]
      of the[color=blue]
      > main form ( for user input and info, etc.) leaving the menu bar[/color]
      visible. How[color=blue]
      > can I make the loaded forms follow the main form when the main form is[/color]
      moved[color=blue]
      > around the desktop area?[/color]

      It almost sounds like your are describing an MDI type interface (a
      housing form with menubar that contains the actual forms to be worked
      on... think Microsoft Word). If so, add an MDI form and make your
      existing forms children of the MDI form by setting their MDIChild
      properties to True at design time.

      CAUTION... just in case you find out you don't really want to do it this
      way, make back up copies of ALL your existing project files so you can
      easily restore yourself to a known setup.

      Rick - MVP

      Comment

      • Val Mehling

        #4
        Re: Forms question

        On Tue, 16 Nov 2004 12:50:27 GMT, "rv daffin" <dink@daffin.ne t> wrote:
        [color=blue]
        >I have a program written in VB6 that has a main form with a menu bar.
        >Depending on the action of the user other forms can be loaded on top of the
        >main form ( for user input and info, etc.) leaving the menu bar visible. How
        >can I make the loaded forms follow the main form when the main form is moved
        >around the desktop area?
        >I appreciate your time.[/color]

        Another easy to use alternative is to put several frames on your form, each of
        which covers all but the bar at top. Each frame carries its own set of controls
        which are either shown or hidden with the frame which which contains them.

        If you don't want the frame label to show (I usually don't) just delete the
        default text.

        Val Mehling
        valjm16@DELETE_ THISearthlink.n et

        XRL (Extreme Racing League) Info

        Comment

        • Hal Rosser

          #5
          Re: Forms question


          "rv daffin" <dink@daffin.ne t> wrote in message
          news:nImmd.2782 6$KJ6.10147@new sread1.news.pas .earthlink.net. ..[color=blue]
          > I have a program written in VB6 that has a main form with a menu bar.
          > Depending on the action of the user other forms can be loaded on top of[/color]
          the[color=blue]
          > main form ( for user input and info, etc.) leaving the menu bar visible.[/color]
          How[color=blue]
          > can I make the loaded forms follow the main form when the main form is[/color]
          moved[color=blue]
          > around the desktop area?[/color]


          in the form2 activate event:

          me.left = frmMain.left
          me.top = frmMain.top




          ---
          Outgoing mail is certified Virus Free.
          Checked by AVG anti-virus system (http://www.grisoft.com).
          Version: 6.0.788 / Virus Database: 533 - Release Date: 11/1/2004


          Comment

          Working...