Archive for the 'VB.Net' Category

Getting a Type by full name and creating an instance of it using Activator

Wednesday, July 2nd, 2008

Yesterday was my first work day in my new company. Today I needed to go through a part of components developed by the company. I created a WinForms application with several forms. I used each form to test different controls using different configuration. The application has one main form with buttons - one button per form. Each button’s Text property is set [...]

XmlUtils - serialize/deserialize an object to/from Xml in VB.Net

Friday, June 27th, 2008

Here is an implementation using VB.Net of XmlUtils class from my old post. Yesterday, I wrote an implementation of XmlConverter using VB.Net. As I wrote the idea is to provide the code in VB.Net for people that use VB.Net as their favourite programming language. Both XmlConverter and XmlUtils do the same but the second one is [...]

Serialize/Deserialize a Font and Color to/from XML

Thursday, June 26th, 2008

Not so long ago I needed to store some of UI appearance values of my project into a custom XML file in order to allow the end-user to configure its UI appearance. As it is expected I had to store also fonts and colors. Both of them can not be directly serialized into XML. For serializing/deserializing colors [...]

XmlConverter - serialize/deserialize an object to/from Xml in VB.Net

Thursday, June 26th, 2008

Here is an implementation using VB.Net of XmlConverter class from my old post. I’ll not rewrite the post but just put the code and sample of its use. The idea is to allow some VB.Net guy to use the implementation as is and not to rewrite it from C# into VB.Net. BUT Let me underline that I’ve [...]