Form problem
-
I am migrating a large VB.6 solution to VB.Net and have encountered a problem that I haven't been able to solve. It has been my habit for some years to notify myself of errors by putting up a new form and write to it the location and type of error that has occurred. This works nicely in VB.6. I use this class in an error routine, such as. Catch ex As Exception Err.Showit("clsBars", "DoNewMinute", ex.Message.ToString) End Try In VB.Net the form comes up and is correctly sized and positioned and the error message is written to it. When you pass the cursor over the form it turns to an hourglass. You can not minimize, maximize, close or drag the form. If you use this class from a command button on another form with this code Err.SetUpForm() Err.Showit("This is a test") the form behaves normally. What am I missing? Thanks RCarey Here is the code for my error class.(alias Err.) Public Class clsError Private dG As System.drawing.Graphics Private dFt As System.Drawing.Font Private dBr As SolidBrush Private dFm As StringFormat Private dX, dY As Integer Private lineCount, maxLines As Double Public Sub SetUpForm() '1/14/04 Dim dbgString As String Try frmError = New Form3 '