
09-08-2004, 01:21 PM
|
 |
Centurion
|
|
Join Date: Jul 2004
Location: Arlington, Texas
Posts: 189
|
|
Quote:
|
Originally Posted by ScientificLee
Hi.
I have a main form that receives data.
When certain conditions are met it calls a function to send messages to the end users. Something else I would like it to do is call a function, WriteInfo(tracker as string, barrier as string).
Code:
Private Sub WriteToInfo(ByVal tracker As String, ByVal barrier As String)
Dim info As New Form2
info.Show()
End Sub
The function should just write out information to a floating text box. Not sure how I should go about this. I guess I should first check if Form2 already exists. If it does just write to it. Although I'm not sure how to do this because I usually just pass in the variable when I initiate the other form.
Any ideas?
|
This is a pain for me aswell. The only thing I have found to work is:
Code:
Public Shared Sub UpdateStatus(Optional ByVal newStatus As String = "")
CType(frmLogin.ActiveForm, frmLogin).sbLoginStatus.Panels(0).Text = newStatus
End Sub
Something like that. (This must be placed within the Form Class.)
|
|