Click here to Skip to main content
15,896,207 members
Home / Discussions / Windows Forms
   

Windows Forms

 
AnswerRe: RunTime How to Set A Object Type Pin
Lutosław17-Sep-07 4:40
Lutosław17-Sep-07 4:40 
QuestionUser Control with container area? [modified] Pin
MrBean12-Sep-07 23:23
MrBean12-Sep-07 23:23 
AnswerRe: User Control with container area? Pin
Lutosław13-Sep-07 7:13
Lutosław13-Sep-07 7:13 
GeneralRe: User Control with container area? Pin
MrBean13-Sep-07 21:19
MrBean13-Sep-07 21:19 
AnswerRe: User Control with container area? Pin
Patrick Etc.19-Sep-07 16:54
Patrick Etc.19-Sep-07 16:54 
GeneralRe: User Control with container area? Pin
MrBean19-Sep-07 23:22
MrBean19-Sep-07 23:22 
QuestionHow to show a calendar in wpf Pin
sarodam11-Sep-07 19:37
sarodam11-Sep-07 19:37 
QuestionNeed information on Form.resx files. Pin
Preston McCormick11-Sep-07 13:28
Preston McCormick11-Sep-07 13:28 
I'm trying to understand form.resx files. Particularly what is put in them and why. I have found plenty of information on resx files in general, but I am looking specifically to understand the relationship between the Visual Studio form designer and the form.resx files.

Most of the little I have seen on the topic says that the file is to facilitate localization and something about storing images for the form. The link to localization is definitely real, since when I select a different location I get another resx file for that location. Based on that, I assume that the default resx file is tied to the default location.

The specific issue that has me interested in this topic is as follows:

I have created a customizable form framework that allows users to filter a huge list of properties down to the ones that they care about. The initial list of properties is generated by reflecting on the business object that the form edits. Another form allows them to shift properties from a list to show and a list to hide. A custom attribute called ControlDescription can decorate the business objects' properties to specify the type of control to show, and additional information such as a domain to populate values in a drop-down list. A FormConfig object keeps all of the form customization settings, which consist of a series of show and hide property lists for the various business objects.

So what does all this have to do with resx files? Well, the forms are serializing the FormConfig object into the resx file. More accurately it is serializing each item in each list into the resx file. These lists are pretty long because the business objects have so many properties, which is why all this madness was developed in the first place. Anyway, I can't figure out why it serializes this particular object into the resx. It seems to be causing problems, because the resx files are getting corrupted on a fairly regular basis.

A typical (slightly absurd) error is:

Object of type 'Us.Fed.Fs.Nris.Nrvs.BusinessObjects.ControlDescription' cannot be converted to type 'Us.Fed.Fs.Nris.Nrvs.BusinessObjects.ControlDescription'.

My hope is, that if I understood what the resx is doing and why, that I can either prevent it from serializing these objects by restructuring the application, or avoid whatever is causing the corruption of the resx files.

Thanks,

Preston
QuestionSimple question about button on windows forms Pin
maglev_tgv10-Sep-07 22:18
maglev_tgv10-Sep-07 22:18 
AnswerRe: Simple question about button on windows forms Pin
ChandraRam11-Sep-07 0:02
ChandraRam11-Sep-07 0:02 
GeneralRe: Simple question about button on windows forms Pin
Giorgi Dalakishvili11-Sep-07 0:05
mentorGiorgi Dalakishvili11-Sep-07 0:05 
AnswerRe: Simple question about button on windows forms Pin
Christian Graus11-Sep-07 0:03
protectorChristian Graus11-Sep-07 0:03 
GeneralRe: Simple question about button on windows forms Pin
Urs Enzler11-Sep-07 3:02
Urs Enzler11-Sep-07 3:02 
GeneralRe: Simple question about button on windows forms Pin
Giorgi Dalakishvili11-Sep-07 3:09
mentorGiorgi Dalakishvili11-Sep-07 3:09 
QuestionDatagrid ID value Automatic [modified] Pin
somagunasekaran10-Sep-07 3:29
somagunasekaran10-Sep-07 3:29 
QuestionHow to Delete the Datagrid Row Pin
somagunasekaran9-Sep-07 21:56
somagunasekaran9-Sep-07 21:56 
QuestionDataGrid control WinFroms Pin
somagunasekaran9-Sep-07 17:39
somagunasekaran9-Sep-07 17:39 
AnswerRe: DataGrid control WinFroms Pin
John_Adams30-Apr-08 22:45
John_Adams30-Apr-08 22:45 
QuestionHow to change a panel's controls from another form? Pin
DogMa3x7-Sep-07 11:59
DogMa3x7-Sep-07 11:59 
QuestionMultiple Forms Subscribing to the same event/data? Pin
basi00147-Sep-07 6:57
basi00147-Sep-07 6:57 
GeneralCrystal Reports ButtonTranslate Method Pin
Juan Pablo G.C.6-Sep-07 22:48
Juan Pablo G.C.6-Sep-07 22:48 
GeneralRe: Crystal Reports ButtonTranslate Method Pin
Chetan Patel7-Sep-07 2:44
Chetan Patel7-Sep-07 2:44 
QuestionError on file.copy Pin
samerh6-Sep-07 21:30
samerh6-Sep-07 21:30 
AnswerRe: Error on file.copy Pin
Chetan Patel7-Sep-07 2:41
Chetan Patel7-Sep-07 2:41 
AnswerRe: Error on file.copy Pin
Scott Dorman7-Sep-07 4:57
professionalScott Dorman7-Sep-07 4:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.