Hi.
I have created a Form (Window) with many controls in it, all dropped in FlowLayoutPanels so they get properly rearranged depending on the current Profile. Then I set a Phone profile and changed some of the controls positions, this way it would be properly shown to the user when the application is run in Phones. Worked perfectly. Now, I had to add a new field to one of the Panels, which I did. However, after this, when I choose the Phone profile in the VS Editor, I get a message with the title “Reset Profile” and the message “Collection was modified; enumeration operation may not execute”. Does that mean that once we create a Profile there is no way to add new controls to them without starting editing the other profiles from scratch?!
Thanks in advance.
Ivan
Hi Luca.
Just to let you know, I have a feeling there is more to take care about the ResponsiveProfiles functionality. Now, I have had all my controls Locations changed to the same as the Phone profile, after I repositioned some of them in the Phone profile. Once I finished editing the controls and clicked back to the Default Profile, I had that same message I mentioned in my original post and the form wouldn’t open anymore. So, I closed VS and opened it again just to see that all my controls in the Defaut Profile were in the wrong locations, basically as they were in the Phone profile after I repositioned them there. Right now it is a bit scary. I will make sure I save a copy of the forms before I do any editing on a different profile.
Thanks for the reply, Luca!
Yep, I added it to the Default Profile. I was right now checking this new field (ResponsibleProfiles) property and noticed there are 2 entries for it for the Phone profile, which is odd. I will delete one of them and see if it fix it.
Controls have to be added to the default profile and are present in all profiles. you can hide them. It’s like the localization feature. I’ll check why it doesn’t show the correct message.
Please login first to submit.