1974maiden
MIS
Sorry,
If this question is ridiously easy ...
' If I click on a button (event) then I can change my textbox value
Private Sub btnClosePort_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnClosePort.Click
txtSend.Text = "Text value Changed"
End Sub
'But how can I change the data in a textbox for non-events
Public Sub senddata(ByVal s As String)
'doing something with s
'doing something
txtSend.Text = "Value not changed" 'DOES NOT WORK
End Sub
Thanks
If this question is ridiously easy ...
' If I click on a button (event) then I can change my textbox value
Private Sub btnClosePort_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnClosePort.Click
txtSend.Text = "Text value Changed"
End Sub
'But how can I change the data in a textbox for non-events
Public Sub senddata(ByVal s As String)
'doing something with s
'doing something
txtSend.Text = "Value not changed" 'DOES NOT WORK
End Sub
Thanks