radtextbox cursor

2 posts, 0 answers
  1. Elizabeth
    Elizabeth avatar
    8 posts
    Member since:
    Sep 2008

    Posted 11 Jun 2009 Link to this post

    I have a radtextbox where I have the font set to blue, cursor to hand, and underlined...our users want it to behave like a hyperlink.  When I hover over the textbox, the HAND cursor only appears when I'm near the border of the control.  When I'm over the actual text, it turns to IBeam...and the Click event isn't fired.  What's the trick.
  2. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 12 Jun 2009 Link to this post

    Hello Elizabeth,

    Thank you for writing. Why do you need a text box to behave like a hyperlink? Normally a text box which supports such functionality is actually a rich text editor, which we currently do not provide. The default RadTextBox behaves just like this because it is designed for simple text input. If you need a hyperlink you can tweak our RadLabel to have blue underlined text and set the cursor to hand. Here is how you can do this:

    private void Form1_Load(object sender, EventArgs e)  
    {  
        this.radLabel1.Cursor = Cursors.Hand;  
        this.radLabel1.Font = new Font("Microsoft Sans Serif", 8.25F, FontStyle.Underline);  
        this.radLabel1.ForeColor = Color.Blue;  
    }  
     
    private void radLabel1_Click(object sender, EventArgs e)  
    {  
        System.Diagnostics.Process.Start("http://www.google.com");  

    Write again if you have other questions.

    Regards,
    Victor
    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.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top