Skip to Content
0
Former Member
Jan 02, 2008 at 02:44 PM

Showing a Windows Form

17 Views

Good Day

Experts:

I have looked through the posts here on the forum for assitance with my problem when popping-up a Windows Form. It shows fine

but when I move the form around on the screen it the background gets filled in white just like the eraser in Windows Paint. Here is the code I am using which is called from behind a button click:

Dim myThread As New Thread(New ThreadStart(AddressOf openReportViewer))

myThread.Start()

myThread.Join()

Private Sub openReportViewer()

Try

Dim LaunchCrystalForm As New LBSI_LaunchCrystal

LaunchCrystalForm.WindowState = FormWindowState.Normal

LaunchCrystalForm.Visible = False

LaunchCrystalForm.ShowInTaskbar = True

LaunchCrystalForm.TopMost = True

LaunchCrystalForm.ShowDialog()

Catch ex As Exception

HandleException("CRYS Form - openReportViewer", ex, False)

Finally

End Try

End Sub

What do you think?

Thanks,

EJD