Stupid code

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

    Stupid code

    I have two forms. Once called form1 and one called form2 I have a command
    button on form1 and the code is

    form2.show

    This does not work. Can someone please help me.

    Thank you
    Eric in Tampa


  • aterlamia

    #2
    Re: Stupid code

    form2.show should work (Does for me) you can also try teh command
    form2.visible = true

    aterlamia
    "Eric" <eparker7@tampa bay.rr.com> schreef in bericht
    news:7PYib.1297 75$Of2.3951140@ twister.tampaba y.rr.com...[color=blue]
    > I have two forms. Once called form1 and one called form2 I have a[/color]
    command[color=blue]
    > button on form1 and the code is
    >
    > form2.show
    >
    > This does not work. Can someone please help me.
    >
    > Thank you
    > Eric in Tampa
    >
    >[/color]


    Comment

    • MooVBuff

      #3
      Re: Stupid code

      If you're going to show another form on top of an existing form try setting
      the ZOrder of Form2 to 0:

      Form2.Show
      Form2.ZOrder 0

      If you no longer need Form1 then unload it:

      Form2.Show
      Unload Form1

      "Eric" <eparker7@tampa bay.rr.com> wrote in message
      news:7PYib.1297 75$Of2.3951140@ twister.tampaba y.rr.com...[color=blue]
      > I have two forms. Once called form1 and one called form2 I have a[/color]
      command[color=blue]
      > button on form1 and the code is
      >
      > form2.show
      >
      > This does not work. Can someone please help me.
      >
      > Thank you
      > Eric in Tampa
      >
      >[/color]


      Comment

      Working...