Since moving to 4.0, I'm unable to import style settings, even if the style settings were exported with 4.0, I just get the error: Must specify valid information for parsing in the string
Here's the code I'm using:This same code worked fine previously in 3.1
[Modified at 12/07/2006 10:22 AM]
Here's the code I'm using:
string settingsFile = <File>;
if (File.Exists(settingsFile))
{
try{
lang.IsUpdating = true;
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load(settingsFile);
lang.HighlightingStyles.ImportStyleSettings(xmlDoc.FirstChild);
lang.IsUpdating = false;
}
catch(Exception e){
<Exception code>
}
}
[Modified at 12/07/2006 10:22 AM]
------------------------------- Marianne