but may i ask where should i place that line of coding?
cos i put that line at the report viewer under the part CloseToolStripMenuItem_Click and under page load of my applciation window
but it still close everything
hmm i followed ur way but it still close all the windows..
i pasted the code u gave me at my application window:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
[B] TestReport.CrystalReportViewer1.ReportSource = Nothing[/B]
If (RadioButton1.Checked) Then
Dim r1 As New CrystalReport1
TestReport.Text = "Report 1"
TestReport.CrystalReportViewer1.ReportSource = r1
and here at the report viewer:
Private Sub CloseToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CloseToolStripMenuItem.Click
[B]CrystalReportViewer1.ReportSource = Nothing[/B]