ErrorProvider makes default language loosing properties...

Ok, I have a very weird problem.

I have a windows forms with some basic controls in it, textboxes, buttons, labels. with only one tab (very basic).

My problem is when I'm switching language, i'm loosing control properties in my default language.

Here's the behavious when the errorProvider is in my form.

1- I drop a combobox in my form (in the default language), change the dropdownstyle value to dropdownlist.

2- In the initializecomponent, I can see myComboBox.dropdownstyle = dropdownlist;

If i switch to another language (IE: Spanish), I can see the myComboBox.dropdownstyle = dropdownlist again in the initilizecomponent.

The problem is when i'm switching back to default language, it is adding the dropdownstyle in the spanish resource file but it doesn't add in the default language file. Also, the line in the initializecomponent has been removed as well, thus, loosing properties in my default language form.

If I drop the errorProvider component out of my form, everything works perfectly, the myComboBox.dropdownstyle = dropdownlist line in the initializecompoment doesn't get removed even if i'm switch back and forth language. As soon as I try to add the errorprovider (even if i just drop the component without any code), i'm loosing properties.

Anyone understand that

Thanks.



Answer this question

ErrorProvider makes default language loosing properties...

  • Hassmann

    You could zip the project and send it to my email, I will take a look at whats its doing. Check my user profile for my email.

    ~Mike



  • Drake30

  • sfx1

    No, this is a real issue and not only a language problem.

    I just CAN'T set any properties to my form en default language. I need to swtich back and forth from language to language at design time to add more labels, change stuff ect, and everytime I'm switching to default, i'm loosing all my changes.

    I think this is a real bug from VS and should be addressed somehow to Microsoft.

    thanks.


  • Frank0824

    I reproduced the error but can't seem to figure out why the error provider would cause that.


  • alekz

    Anyone know this or it's unclear

    thanks.


  • michealdm

    OK, I understand what to do to reproduce it now. I will check that later and getback to you. Sorry for the misunderstanding

  • Joshua Scholar

    Everything that you need was in the zip file. I have tried with two different machine and it's doing the same thing. Same package everything.

    Again, I will explain one more time:

    1-Drag a combo box in the form designer (just for a test).

    2-Change combo box property (dropdownstyle to dropdownlist)

    3- Click on the form and switch language in the property of the form by selection French Canada. (This will reload the form in the designer in French)

    4- Switch the language in the form property to default again. (This will reaload the form in the designer in English).

    5- Check your combo box dropdownlist property, you will see that your change has been lost. You should see dropdown instead of dropdownlist as expected in the dropdownstyle property of that combo box.

    You have try everything here and you are saying that in your machine, you can see the original value (dropdownlist) at step #5 I would be very supprised of that since I have tried in two different machine, same package everything.

    Is there anyone that would try that as well I could send the litle package, Only have one form. Let me know and I will send the zip file.

    thanks.

     

     


  • Daniela Torres

    I had a screen shoot but looks like someone has deleted it. What part do you want I can maybe zip the project There is no code attached here, only controls that has been inserted in the forms...So basicly only the .cs file.
  • DaveChapman

    As soon as I get home I will reproduce the problem and report back here.

  • LeBlah

    Ok, email has been sent.

    Step to reproduce problem:
    - Drag a combo box in the designer, change the dropdownstyle property to dropdownlist, change form the language (fr-CA), switch back language to default. You will see that dropdownstyle has been reseted to dropdown. (Should be dropdownlist). But if you switch back to french language, you will the the dropdownlist is now set at dropdownlist (which is good).

    If you remove the errorprovider, everything works fine. And if you try to insert the errorprovider again, same problem occur.

    Thanks

    Jonathan


  • mikkk

    Code sample

  • sapanasansar

    I tested this issue in 2003 .NET and 2005 .NET same issue. I have no clue. I am thinking once complied the user will be changing this option at runtime not in production of the application so I dont think this issue really matters. But then again I don't know. I would test it by adding a dropdown list with languages and run your .exe and switch languages that way.

  • Boris Jabes MSFT

    Well, that is the main reason of this topic... :)

    If you remove the error provider, it will keep property, as soon as you insert it again, same problem occur.

    Jonathan


  • magicali

    I looked at it and could not reproduce the problem. If you want to resend it with everything in place so that the error your having is occuring I will look at it again. IN the meantime check this out and see if it helps.

    http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpguide/html/cpcondesigningglobalapplications.asp frame=true



  • ErrorProvider makes default language loosing properties...