Welcome to the Xceed Community | Help
Community Search  
More Search Options

Is it possible to retrieve the text in a TextBoxTool SmartItem?

Sort Posts: Previous Next
  •  10-10-2008, 10:10 AM Post no. 28430

    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.
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2011 Xceed Software Inc.