Ok.. now i add some text to my listbox ^^
PHP Code:
Public Shared Sub Log(ByVal oo As Object)
Application.OpenForms(0).Invoke(New MethodInvoker(Function()
Main.LogBox.Items.Add("[" & DateTime.Now.ToLongTimeString & "]" & oo)
End Function))
But when i create same sub for changing a label's text, it doesnt work.
PHP Code:
Public Shared Sub Log(ByVal oo As string , labe as label)
Application.OpenForms(0).Invoke(New MethodInvoker(Function()
labe.text=oo
End Function))
BUT If i create sub with only 1parameter again, no problems ; like this
PHP Code:
Public Shared Sub ChangeLabelText(ByVal oo As String)
Application.OpenForms(0).Invoke(New MethodInvoker(Function()
Main.NameLabel.Text = oo
End Function))
End Sub
So.. will i create the sub again and again for each label?
sarkolata