show hidden modal forms

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • 93RT6R
    New Member
    • Aug 2007
    • 2

    #1

    show hidden modal forms

    how do i bring a hidden modal form on top while preserving the values entered in the fields?
  • VBPhilly
    New Member
    • Aug 2007
    • 95

    #2
    zorder for forms:

    Code:
    modalhiddenform.zorder
    should bring it to the top.

    the other issue with fields changing? has no bearing on the zorder. unless you coded it that way. show some code - maybe others will be able to fill in.

    Comment

    • Killer42
      Recognized Expert Expert
      • Oct 2006
      • 8429

      #3
      Isn't it impossible for a modal form to be hidden? Or for a hidden form to be modal?

      Comment

      • 93RT6R
        New Member
        • Aug 2007
        • 2

        #4
        I have 2 forms, Form1 is a modal form. On click of a button i want to open Form2
        Form1 code
        With Form2
        .CalledfromForm 1 = True
        Me.Hide
        .Show
        .ZOrder
        End With


        On close of Form2 i want to show the hidden modal form with all the values entered in the textboxes intact...
        Form2 code
        Private Sub cmdClose_Click( )
        If CalledFromForm1 = True Then
        CalledFromForm1 = False
        Form1.Show
        End If
        End Sub

        This doesnt seem to be working!! the form opens but the values in the textboxes are lost. Do you know if there is any property i have to set or something? ZOrder doesnt seem to work either!!!


        Originally posted by VBPhilly
        zorder for forms:

        Code:
        modalhiddenform.zorder
        should bring it to the top.

        the other issue with fields changing? has no bearing on the zorder. unless you coded it that way. show some code - maybe others will be able to fill in.

        Comment

        Working...