RightToLeft

sundar k replied to Aldo Liaks at 10-May-08 07:57

RightToLeft seems to be a enum and your GetObject is returning a string, so you should try using enum.parse which will convert the string representation of the name or numeric value of one or more enumerated constants to an equivalent enumerated object

 this.RightToLeft = (RightToLeft)Enum.Parse(typeof(RightToLeft), rmLanguage.GetString("frmUsersConfig.RightToLeft"));

If you want to know more about enum.parse, you can check out the msdn link

http://msdn.microsoft.com/en-us/library/essfb559.aspx


Click here to sign in and reply. You could earn money via our $500 contest just for being helpful.
  C# 3.0 - Convert string to System.Windows.Forms.RightToLeft - Aldo Liaks  10-May-08 04:57 4:57:25 AM
      Try this - Sujit Patil  10-May-08 05:11 5:11:22 AM
          Exception - Aldo Liaks  10-May-08 05:28 5:28:44 AM
              check here... - Vasanthakumar D  10-May-08 05:35 5:35:08 AM
      You cannot convert String to RightToLeft.. - Vasanthakumar D  10-May-08 05:21 5:21:57 AM
      RightToLeft - sundar k  10-May-08 05:58 5:58:39 AM
          Testing in Inmediate Window - Aldo Liaks  10-May-08 07:15 7:15:17 AM
              RightToLeft - sundar k  10-May-08 07:57 7:57:45 AM
                  Exception - Aldo Liaks  10-May-08 10:14 10:14:10 AM
                  Problem in resources file - Aldo Liaks  10-May-08 10:30 10:30:43 AM
      Few Help - Rave Rasaiyah  11-May-08 09:17 9:17:56 PM
          Thanks Rave - Aldo Liaks  12-May-08 02:10 2:10:00 AM
View Posts