I have a class that provides functionality that is around my application.
One function it provides is a "PleaseWait" method, which displays a popup please wait form.
This works as a pair of functions as follows:
Dim _frmPleasewait As frmPleasewait
Public Sub PleaseWait(ByVal Text As String)
_frmPleasewait = New frmPleaseWait(Text)
_frmPleasewait.Show()
End Sub
Public Sub PleaseWaitClear()
_frmPleasewait.Hide()
_frmPleasewait.Dispose()
End Sub
the frmPleaseWait is added to this class and is simple form with a label on it. The New constructor takes a parameter which it sets the label.text equal to.
It is used in other forms in code such as.
Dim cls as new class
cls.pleasewait("Please wait whilst processing")
....
....
....
cls.PleaseWaitClear.
What happens is that the pleasewait form pops up correctly, but the label box is completely transparent (ie you can see the form underneath through it!!!).
Any ideas what I could have done wrong???
Thanks in advance
Simon