Is it possible to retrieve the text in a TextBoxTool SmartItem?
-
-
Xceed admin
-
-
-
Joined on 09-29-2008
-
Longueuil
-
Posts 443
-
-
|
Is it possible to retrieve the text in a TextBoxTool SmartItem?
The TextBoxTool's Text property represents the TextBoxTool's label and not the text it contains. Therefore, in order to retrieve the text in a TextBoxTool SmartItem, you must pass by the TextBoxTool's virtual textbox. For example:
| Dim text As String = textBoxTool1.VirtualTextBox.Text | If you want to know when the TextBoxTool's text changes, you can use the virtual textbox's TextChanged event:
AddHandler textBox1.VirtualTextBox.TextChanged, AddressOf Me.ToolTextChanged
Private Sub ToolTextChanged( ByVal sender As Object, ByVal e As EventArgs ) ' Code goes here End Sub | Version 3.1 of SmartUI for .NET is required.
|
|
|
|
|
|