We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Button Text

Thread ID:

Created:

Updated:

Platform:

Replies:

110369 Jul 31,2013 08:09 AM Aug 12,2013 04:42 AM WPF 1
loading
Tags: GridControl
ash
Asked On July 31, 2013 08:09 AM

Haii

In our project we are using syncfusion button controls.We are using Arabic version also.For achieving this we create a table contains text in English and Arabic.Form load we store  English text as hashtable key and arabic text as hashtable value.Then using following function

 private void setControlName()
        {
            foreach (Control ctr in this.Controls)
            {
                object ctrText =StaticValues.HashControlName[ctr.Text.ToString()];
                if (ctrText != null)
                {
                    ctr.Text = ctrText.ToString();
                }
            }
        }

The problem is with this function we are not able to set  button text.Actually our button text is &Save.But when i take key the text is showing as "&Save\r\n" so matching key is not in the hash value and it set null.I am using visual studio 2010.Please help me

Kannan R [Syncfusion]
Replied On August 12, 2013 04:42 AM

Hi Ash,

 

Thanks for your interests Syncfusion Products.

 

Query

Comments

The problem is with this function we are not able to set  button text. Actually our button text is &Save. But when i take key the text is showing as "&Save\r\n" so matching key is not in the hash value and it set null. I am using visual studio 2010

We have achieved your requirement by handling Load event and we have also prepared sample based on your requirement. Please find it in below location.

 

Sample Location: WindowsFormsApplication101.zip

 

Please let us know if you have any concerns,

 

Regards,

Kannan.R


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;