anime8ted
New member
I am encountering a problem updating the text in a textbox on a form.
What I am trying to do is pass data using IPC remoting from a form called "Application" to a Windows Service called "Hub" and then on to a form called "Server" where the data is displayed.
Right now what I have is two forms each equipped with a button and a textbox control. Upon hitting the button in the "Application" form the value of the textbox on the same form is sent via IPC to the service then onto the "Server" form where I am trying to set the value of the textbox there to the data that I had sent via IPC.
I have been using MsgBoxes to confirm the transmission of data. I have confirmed sending the data from one form to the other but when I try to set the textbox control to the value of the data it does nothing. I have tested hard coding a value (i.e. txtText.Text = "New") for the control and it will display that fine however when I use the following:
Public Sub SetText(ByVal txt As String)
MessageBox.Show(txt & " again")
txtText.Text = txt.ToString()
End Sub
I get nothing, even though the message box will display "12345 again" when I send "12345" as the data, my textbox doesn't reflect any changes.
It is ironic that something this simple is giving me more trouble than working with IPC .
Anyway, any help would be appreciated.
Thanks
What I am trying to do is pass data using IPC remoting from a form called "Application" to a Windows Service called "Hub" and then on to a form called "Server" where the data is displayed.
Right now what I have is two forms each equipped with a button and a textbox control. Upon hitting the button in the "Application" form the value of the textbox on the same form is sent via IPC to the service then onto the "Server" form where I am trying to set the value of the textbox there to the data that I had sent via IPC.
I have been using MsgBoxes to confirm the transmission of data. I have confirmed sending the data from one form to the other but when I try to set the textbox control to the value of the data it does nothing. I have tested hard coding a value (i.e. txtText.Text = "New") for the control and it will display that fine however when I use the following:
Public Sub SetText(ByVal txt As String)
MessageBox.Show(txt & " again")
txtText.Text = txt.ToString()
End Sub
I get nothing, even though the message box will display "12345 again" when I send "12345" as the data, my textbox doesn't reflect any changes.
It is ironic that something this simple is giving me more trouble than working with IPC .
Anyway, any help would be appreciated.
Thanks