• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 301
  • Last Modified:

How to go back to main form after crystal reports report form is closed

I have successfully created a crystal reports report, created the windows form, added the crystal reports viewer to it
and added the report option "user List" to my menu "reports".  Everything works except when I close the report.
The program ends instead of going back to f1.  What do I need to do?

Private Sub MenuUserList_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem1.Click
        f1.Hide()
        If f4 Is Nothing Then
            f4 = New frmRptUserList
        End If
        f4.Show()


    End Sub
0
RuthD2004
Asked:
RuthD2004
  • 2
1 Solution
 
mlmccCommented:
In the close event of f4 add a line

f1.show()

mlmcc
0
 
mlmccCommented:
Glad I could help

mlmcc
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now