Hi All,
could someone help me with a textbox binding problem please..
I have a textbox called JobNumberTextBox which is currently bound like this..
How do I get it to accept a variable in place of MYSERVER? For example if someone entered YOURSERVER in my ServerTextBox then I would like it to change to that..
I have tried the following but it doesn't work..
Can anyone point out where I am going wrong please..
Thanks
John
.NET 2.0, Visual Studio 2005, SQL Server 2005 Express
could someone help me with a textbox binding problem please..
I have a textbox called JobNumberTextBox which is currently bound like this..
Code:
Me.JobNumberTextBox.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.MYSERVERTblJobsBindingSource, "JobNumber", True))
How do I get it to accept a variable in place of MYSERVER? For example if someone entered YOURSERVER in my ServerTextBox then I would like it to change to that..
I have tried the following but it doesn't work..
Code:
Me.JobNumberTextBox.DataBindings.Add(New System.Windows.Forms.Binding("Text", "Me." & ServerTextBox.text & "TblJobsBindingSource, "JobNumber", True))
Can anyone point out where I am going wrong please..
Thanks
John
.NET 2.0, Visual Studio 2005, SQL Server 2005 Express