Geeks With Blogs
Paul's development blog Tidbits from Smart Client, Windows Forms, C#, .NET 2.0, XML, and related toys... December 2005 Entries
VS2005's Auto creation of an Xml document for parameter value
In a windows form, I have a control with a public XmlDocument property. Every so often (when the designer code changes), Visual Studio 2005 adds an XmlDocument to the form as well as this code (names have been changed to protect the innocent) in the InitializeComponent() method: xmlDocument1.InnerText = "";xmlDocument1.InnerXml = resources.GetString("xmlDoc... = "";xmlDocument1.PreserveWhi... = false;xmlSchemaCompilationS... = true;xmlSchemaSet1.Compilat... ......

Posted On Thursday, December 22, 2005 5:11 PM

WebBrowser as an editor control: Make Enter emulate Shift-Enter
My organization's using a freely available HTML Editor for Windows Forms applications. The product is very solid, does most of what we need to. The one gripe we've had since the beginning is the inherent property of the web browser to convert an {ENTER} input to a new paragraph. We wanted to have this keypress emulate a single BR tag (equivalent to a Shift+{ENTER}). This proved to be slightly nontrivial, and we were having trouble finding an online resource that explained how to approach the problem. ......

Posted On Monday, December 19, 2005 11:58 PM

C# 2.0 WebBrowser control - bug in DocumentText?
It appears that the Windows Forms webbrowser control that shipped with VS2005 and the .NET framework 2.0 has an issue that prevents setting the .DocumentText property. For me, the control behaves most consistenly when I navigate to a blank page, write to the document, and then manipulate the DocumentText, such as in this code: this.webBrowser1.Navigate("... doc = this.webBrowser1.Document;d... = xmlOutput; ......

Posted On Monday, December 12, 2005 10:30 PM

Copyright © Paul Whitaker | Powered by: