This one was a mystery. Since using System.Windows.Forms.Design does not acknowledge that the FileNameEditor class exists, I thought adding a reference to it is the only solution. But which one? There is no System.Windows.Forms.Design DLL. Turned out to be Systems.Design under the .NET tab when you add a reference.

I was fooling around with the Label control in Visual Studio and I wanted the next few words to be on the 2nd line of the Label control. \n is a newline character and I expected that adding that one to the Label’s Text property, the newline would take effect. Turns out the slash and n appears as is if you do it in Visual Studio’s property box. To have a newline working in a Label Control, you would have to do it programatically. Then your \n will work.

This may hold true with other controls. If your newline character will not work when you add it within Visual Studio’s property box, try adding it programatically. I am sure it will work.

Related Posts Plugin for WordPress, Blogger...