>>Ok, the general rule is to leave the designer.cs file alone. However, the only thing I want to edit is the BoundProperty value on my controls. I am redoing a VFP form of 32 pages and each page has approximately 10-30 controls on it so updating the bound property on every page is very time consuming. Right now, the form has old variables in the boundproperty and I need to update every one with the new dotnet variable name. So, I want to parse the file and find:
>>
>>this.pgGenProp1.BoundProperty = "glMyVarName";
>>
>>and take the value glMyVarName, find it in a table, and replace it in the designer.cs file with "MyNewVarName" programmatically.
>>
>>I have a table with the old vars and the new vars.
>>
>>Can I do it? Has anyone done that before? As long as I don't touch anything else, is it reasonable for it not to break?
>
>Are you sure you posted this question in the right forum (VFP)? It looks like (from the title and the content) that you are doing something in a .NET application. Sorry if I am completely off the mark.
Probably :o) But I used VFP to parse the file and it worked :o)
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"