radtextbox

4 posts, 0 answers
  1. appdev
    appdev avatar
    223 posts
    Member since:
    Sep 2008

    Posted 10 Feb 2009 Link to this post

    why can't i do select all? it just wouldn't select all the text in side that text box on the click command could some one help?

     

    Private Sub txtUserName_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtUserName.Click

     

     

        txtusername.selectall()
    End
    Sub


     

  2. Nick
    Admin
    Nick avatar
    767 posts

    Posted 11 Feb 2009 Link to this post

    Hello Duy,

    Thank you for your question. Our textbox control hosts a standard textbox control. To subscribe for the click event of the hosted textbox you need to work with this element:

    Me.RadTextBox1.TextBoxElement.TextBoxItem.HostedControl


    Then you have to cast it to TextBox and then subscribe to its Click event. Do not hesitate to write me back if you have further questions.

    Greetings,
    Nick
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. appdev
    appdev avatar
    223 posts
    Member since:
    Sep 2008

    Posted 11 Feb 2009 Link to this post

    can you show me the code i'm still not sure what to do from there. and why is this has to be complicated? why can't we just say
    bayval e as telerik....... in the sub header.
  5. Nick
    Admin
    Nick avatar
    767 posts

    Posted 13 Feb 2009 Link to this post

    Hi Duy,

    I have written the code in VB for you:

    private Sub Form1_Load(ByVal sender As System.ObjectByVal e As System.EventArgs) Handles MyBase.Load 
            AddHandler (DirectCast(Me.RadTextBox1.TextBoxElement.TextBoxItem.HostedControl, System.Windows.Forms.TextBox)).Click, AddressOf textbox_Click 
    End Sub 
    Private Sub textbox_Click(ByVal sender As System.ObjectByVal e As System.EventArgs) 
     
    End Sub 

    We are going to include a new help topic about this event. Do not hesitate to write me back if you have further questions.

    Regards,
    Nick
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top