G
gv
Hi all,
How do I close a instance of a class created like this:
I call this class in my project like this
StatMess.Show("Testing")
this shows a status form
...I do some things here
now here is where I want to close the status form?
Class code:
Imports System.Drawing.Drawing2D, System.Drawing, System.Windows.Forms
Public Class StatMess
Inherits Form
Private foreCol As Color = SystemColors.ControlText
Private backCol As Color = SystemColors.Control
Private fnt As Font = New Font("Arial", 8)
Public Overloads Shared Sub show(ByVal message As String)
Dim frmMess As New StatMess
frmMess.StatusMessage(message)
End Sub
Private Sub StatusMessage(ByVal message As String)
Me.SuspendLayout()
etc........
End Sub
End Class
How do I close a instance of a class created like this:
I call this class in my project like this
StatMess.Show("Testing")
this shows a status form
...I do some things here
now here is where I want to close the status form?
Class code:
Imports System.Drawing.Drawing2D, System.Drawing, System.Windows.Forms
Public Class StatMess
Inherits Form
Private foreCol As Color = SystemColors.ControlText
Private backCol As Color = SystemColors.Control
Private fnt As Font = New Font("Arial", 8)
Public Overloads Shared Sub show(ByVal message As String)
Dim frmMess As New StatMess
frmMess.StatusMessage(message)
End Sub
Private Sub StatusMessage(ByVal message As String)
Me.SuspendLayout()
etc........
End Sub
End Class