Text Box Double Click Event

5 posts, 1 answers
  1. meraj
    meraj avatar
    47 posts
    Member since:
    Dec 2010

    Posted 25 Jan 2011 Link to this post

    I am using textbox and in its double click event i am doing something,
    but when i click in side the box area double click event is not working,But when i click on border of textbox double click event is
    working properly.
                      Is there any way  to fire double click event when i double click on the text area i.e. in side the text box.

  2. Answer
    Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 25 Jan 2011 Link to this post

    Hello Meraj,

    You can use the following code to add a double click handler to the RadTextBox

    AddHandler Me.RadTextBox1.TextBoxElement.TextBoxItem.DoubleClick, AddressOf RadTextBox1_DoubleClick
        Private Sub RadTextBox1_DoubleClick(ByVal sender As Object, ByVal e As EventArgs)
        End Sub

    Hope that helps
  3. meraj
    meraj avatar
    47 posts
    Member since:
    Dec 2010

    Posted 25 Jan 2011 Link to this post

    A lot of thanks.. Its working fine....
  4. haguila
    haguila avatar
    3 posts
    Member since:
    Mar 2012

    Posted 03 Dec 2014 Link to this post

    Sorry but I've the same problem and this solution is not working for me.
    When I try to add the handler as shown above, an error occurs because of TextBoxItem is unknown as member of RadTextBoxControlElement.
    I've also enabled the event at TextBoxElement level (Me.txbTextoAutenticar.TextBoxElement.DoubleClickEnabled = True) but the event is not fired anyway.

    Thanks in advance;
  5. Stefan
    Stefan avatar
    2908 posts

    Posted 04 Dec 2014 Link to this post

    Hi Claudio,

    RadTextBox and RadTextBoxControl are different controls, and for the latter you can access the event directly from the control:
    radTextBoxControl1.DoubleClick += radTextBoxControl1_DoubleClick;

    I hope that you find this information useful. Should you have any other questions, do not hesitate to contact us.


    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top