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. Image for the cookie policy date

Button Text

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

1 Reply

KR Kannan R Syncfusion Team August 12, 2013 08:42 AM UTC

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


Loader.
Up arrow icon