This is a migrated thread and some comments may be shown as answers.
RadTextBoxContron control property change
5 Answers 29 Views
This is a migrated thread and some comments may be shown as answers.
hong
Top achievements
Rank 1
hong asked on 22 Feb 2019, 03:05 AM

Hello everyone,

    When I run the RadTextBox Control program,I select the content of the control RadTextBoxControl,right-click will show copy,paste and other content,

how to copy,paste and change the text showing different languages. Reference picture RadTextBoxControl.jpg

    

    

 

Hello everyone

When I run the RadTextBox Control program, I select the content of the control RadTextBox Control, right-click will show copy, paste and other content, how to copy, paste and change the text showing different languages.

5 Answers, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 22 Feb 2019, 05:24 PM
Hi Hong,

The control supports localization of the context menu and you can use it like this: 
public partial class RadForm1 : Telerik.WinControls.UI.RadForm
{
    public RadForm1()
    {
        TextBoxControlLocalizationProvider.CurrentProvider = new MyTextBoxControlLocalizationProvider();
 
        InitializeComponent();
    }
}
public class MyTextBoxControlLocalizationProvider : TextBoxControlLocalizationProvider
{
    public override string GetLocalizedString(string id)
    {
        switch (id)
        {
            case TextBoxControlStringId.ContextMenuCopy:
                return "&Copy";
            case TextBoxControlStringId.ContextMenuCut:
                return "Cu&t";
            case TextBoxControlStringId.ContextMenuPaste:
                return "&Paste";
            case TextBoxControlStringId.ContextMenuDelete:
                return "&Delete";
            case TextBoxControlStringId.ContextMenuSelectAll:
                return "&Select All";
        }
 
        return base.GetLocalizedString(id);
    }
}

I hope this will help. Let me know if you have other questions.

Regards,
Hristo
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
hong
Top achievements
Rank 1
answered on 25 Feb 2019, 06:01 AM

Hi  Hristo,

Thank you very much, but the programming language I use is VB.net, and the example you give is C#; I can't translate the language

into the solution to the problem I put forward. Do you have any other ways?

 

0
Hristo
Telerik team
answered on 25 Feb 2019, 07:19 AM
Hi Hong,

We have an online VB.NET <--> C# converter: http://converter.telerik.com/ which will help you to convert the C# code to VB.

Let me know if you have other questions.

Regards,
Hristo
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
hong
Top achievements
Rank 1
answered on 25 Feb 2019, 08:28 AM

Hi  Hristo,

   Thank you very much, This problem has just been solved.I also have the same problem, that is, the RadGridview control will also occur, I hope you can help me solve it, thank you.

Regards,

Hong

0
Hristo
Telerik team
answered on 25 Feb 2019, 09:29 AM
Hello Hong,

The RadGridView control can be also localized, we have a documentation article on the subject: https://docs.telerik.com/devtools/winforms/controls/gridview/localization/localization. Please also note that we try to keep the forum threads more or less focused on a single topic per control. In case you are having other questions consider posting them in a new thread.

Regards,
Hristo
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Asked by
hong
Top achievements
Rank 1
Answers by
Hristo
Telerik team
hong
Top achievements
Rank 1
Share this question
or