Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5847331
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T12:42:12+00:00 2026-05-22T12:42:12+00:00

public class CustomEditor : Editor { protected override void Render(HtmlTextWriter writer) { Toolbar topToolbar

  • 0
public class CustomEditor : Editor
{
    protected override void Render(HtmlTextWriter writer)
    {
        Toolbar topToolbar = this.TopToolbar;
        Collection<AjaxControlToolkit.HTMLEditor.ToolbarButton.CommonButton> buttons = topToolbar.Buttons;

        foreach (AjaxControlToolkit.HTMLEditor.ToolbarButton.CommonButton button in buttons)
        {
            switch (button.GetType().Name)
            {
                case "Undo":
                    button.ToolTip = "Отменить ввод";
                    break;
                case "Redo":
                    button.ToolTip = "Повторить ввод";
                    break;
                // many others buttons

                case "FixedForeColor":
                    button.ToolTip = "Цвет текста";
                    break;
                case "FixedBackColor":
                    button.ToolTip = "Цвет выделения текста";
                    break;
            }
        }
        base.Render(writer);
    }
}

Almoust everything works fine. The problem is with buttons “FixedForeColor” and “FixedBackColor”. Their tooltips are not changed (and still in English). Is there any solution?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T12:42:12+00:00Added an answer on May 22, 2026 at 12:42 pm

    easier way :

    You can manage all buttons with their index number
    below you can see their index number.

    protected override void Render(HtmlTextWriter writer)
    {
      Toolbar topToolbar = this.TopToolbar;
      Collection<AjaxControlToolkit.HTMLEditor.ToolbarButton.CommonButton> buttons = topToolbar.Buttons;
    
      buttons[0].ToolTip = "My Lovely Undo";
    
      // Or you visible it
      buttons[0].visible = false;
    
      base.Render(writer);
    }
    
    /* List button index
       [0]: {AjaxControlToolkit.HTMLEditor.ToolbarButton.Undo}
       [1]: {AjaxControlToolkit.HTMLEditor.ToolbarButton.Redo}
       [2]: {AjaxControlToolkit.HTMLEditor.ToolbarButton.HorizontalSeparator}
       [3]: {AjaxControlToolkit.HTMLEditor.ToolbarButton.Bold}
       [4]: {AjaxControlToolkit.HTMLEditor.ToolbarButton.Italic}
       [5]: {AjaxControlToolkit.HTMLEditor.ToolbarButton.Underline}
       [6]: {AjaxControlToolkit.HTMLEditor.ToolbarButton.StrikeThrough}
       [7]: {AjaxControlToolkit.HTMLEditor.ToolbarButton.SubScript}
       [8]: {AjaxControlToolkit.HTMLEditor.ToolbarButton.SuperScript}
       [9]: {AjaxControlToolkit.HTMLEditor.ToolbarButton.HorizontalSeparator}
      [10]: {AjaxControlToolkit.HTMLEditor.ToolbarButton.Ltr}
      [11]: {AjaxControlToolkit.HTMLEditor.ToolbarButton.Rtl}
      [12]: {AjaxControlToolkit.HTMLEditor.ToolbarButton.HorizontalSeparator}
      [13]: {AjaxControlToolkit.HTMLEditor.ToolbarButton.FixedForeColor}
      [14]: {AjaxControlToolkit.HTMLEditor.ToolbarButton.ForeColorSelector}
      [15]: {AjaxControlToolkit.HTMLEditor.ToolbarButton.ForeColorClear}
      [16]: {AjaxControlToolkit.HTMLEditor.ToolbarButton.HorizontalSeparator}
      [17]: {AjaxControlToolkit.HTMLEditor.ToolbarButton.FixedBackColor}
      [18]: {AjaxControlToolkit.HTMLEditor.ToolbarButton.BackColorSelector}
      [19]: {AjaxControlToolkit.HTMLEditor.ToolbarButton.BackColorClear}
      [20]: {AjaxControlToolkit.HTMLEditor.ToolbarButton.HorizontalSeparator}
      [21]: {AjaxControlToolkit.HTMLEditor.ToolbarButton.RemoveStyles}
      [22]: {AjaxControlToolkit.HTMLEditor.ToolbarButton.HorizontalSeparator}
      [23]: {AjaxControlToolkit.HTMLEditor.ToolbarButton.FontName}
      [24]: {AjaxControlToolkit.HTMLEditor.ToolbarButton.HorizontalSeparator}
      [25]: {AjaxControlToolkit.HTMLEditor.ToolbarButton.FontSize}
      [26]: {AjaxControlToolkit.HTMLEditor.ToolbarButton.HorizontalSeparator}
      [27]: {AjaxControlToolkit.HTMLEditor.ToolbarButton.Cut}
      [28]: {AjaxControlToolkit.HTMLEditor.ToolbarButton.Copy}
      [29]: {AjaxControlToolkit.HTMLEditor.ToolbarButton.Paste}
      [30]: {AjaxControlToolkit.HTMLEditor.ToolbarButton.PasteText}
      [31]: {AjaxControlToolkit.HTMLEditor.ToolbarButton.PasteWord}
      [32]: {AjaxControlToolkit.HTMLEditor.ToolbarButton.HorizontalSeparator}
      [33]: {AjaxControlToolkit.HTMLEditor.ToolbarButton.DecreaseIndent}
      [34]: {AjaxControlToolkit.HTMLEditor.ToolbarButton.IncreaseIndent}
      [35]: {AjaxControlToolkit.HTMLEditor.ToolbarButton.HorizontalSeparator}
      [36]: {AjaxControlToolkit.HTMLEditor.ToolbarButton.Paragraph}
      [37]: {AjaxControlToolkit.HTMLEditor.ToolbarButton.JustifyLeft}
      [38]: {AjaxControlToolkit.HTMLEditor.ToolbarButton.JustifyCenter}
      [39]: {AjaxControlToolkit.HTMLEditor.ToolbarButton.JustifyRight}
      [40]: {AjaxControlToolkit.HTMLEditor.ToolbarButton.JustifyFull}
      [41]: {AjaxControlToolkit.HTMLEditor.ToolbarButton.RemoveAlignment}
      [42]: {AjaxControlToolkit.HTMLEditor.ToolbarButton.HorizontalSeparator}
      [43]: {AjaxControlToolkit.HTMLEditor.ToolbarButton.OrderedList}
      [44]: {AjaxControlToolkit.HTMLEditor.ToolbarButton.BulletedList}
      [45]: {AjaxControlToolkit.HTMLEditor.ToolbarButton.HorizontalSeparator}
      [46]: {AjaxControlToolkit.HTMLEditor.ToolbarButton.InsertHR}
      [47]: {AjaxControlToolkit.HTMLEditor.ToolbarButton.InsertLink}
      [48]: {AjaxControlToolkit.HTMLEditor.ToolbarButton.RemoveLink}
    */
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

public class TextBoxDerived : System.Web.UI.WebControls.TextBox { protected override void OnLoad(EventArgs e) { this.Controls.Add(new LiteralControl(Hello));
public class Main { public static void main(String[] args){ XClass x = new XClass();
public class Human { public void Run(){} public void Jump(){} public void Eat(){} //Generalized
public class ArrayTest{ public static void main(String[] args){ String[] list = {key1, key2, key3};
public class PeopleCollection : IEnumerable { private Dictionary<string, Person> listPeople = new Dictionary<string, Person>();
public class MyItem { public string Name { get; set; } public IList<MyItem> ListByName(string
public class Foo<T> where T: Entity {} public class Foo1 : Foo<Telephone> { }
public class Person { private int _Id; public int Id{get{return value;} set{_Id=value;}} private string
In my project I have two libraries that would currently result in a circular

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.