This is a migrated thread and some comments may be shown as answers.

radtextbox cursor

1 Answer 140 Views
TextBox
This is a migrated thread and some comments may be shown as answers.
Elizabeth
Top achievements
Rank 1
Elizabeth asked on 12 Jun 2009, 12:22 AM
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.

1 Answer, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 12 Jun 2009, 08:12 AM
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.
Tags
TextBox
Asked by
Elizabeth
Top achievements
Rank 1
Answers by
Victor
Telerik team
Share this question
or