Adding Blank Selection To A DropDownList Control – Part 2

When data binding to a DropDownList control in ASP.NET, there are in many cases when you want the first selection of the control to be blank or say something like "<please select value>". In part one of this tip (back in 2003), I wrote that you could just add an empty row to the DataSet. … Continue reading Adding Blank Selection To A DropDownList Control – Part 2

VB Beer?

Visual Basic Beer? Well not really, but we can only hope. Don't look for this in your local store unless you are in Australia.

Convert RTF to Text

If you need to convert RTF to text, here is a simple way of doing it:    Public Shared Function ConvertRtfToText(ByVal input As String) As String      Dim returnValue As String = String.Empty      Using converter As New System.Windows.Forms.RichTextBox()        converter.Rtf = input        returnValue = converter.Text      End Using      Return returnValue    End Function Tip Submitted By: David McCarter This code … Continue reading Convert RTF to Text

David McCarter’s .NET Coding Standards

The second edition of this book (formerly VSDN Tips & Tricks .NET Coding Standards), is a consolidation of many of the .NET coding standards available today in one easy to read and understand book. It will guide any level of programmer or development department to greater productivity by providing the tools needed to write consistent, maintainable … Continue reading David McCarter’s .NET Coding Standards

New Version of Refactor!™ for Visual Basic® .NET 2005 Released

Refactor! is freely available to all Visual Basic .NET 2005 developers and offers a comprehensive suite of tools that enable you and your team to simplify and shape complex code - making it easier to read and less costly to maintain. Download by going to: http://www.devexpress.com/Products/NET/IDETools/VBRefactor/

Microsoft Visual Basic 2005 Power Packs 2.0

Line and Shape controls, PrintForm component, and Printer Compatibility Library Microsoft Visual Basic 2005 Power Packs 2.0 includes a new set of Line and Shape controls and updated versions of the two previously released Visual Basic 2005 Power Packs, the PrintForm Component and the Printer Compatibility Library. All three are now included in a single … Continue reading Microsoft Visual Basic 2005 Power Packs 2.0

How to Serialize and Deserialize Your Objects

I came up with some generic methods to do the job:Public Shared Function DeserializeXMLToObject(ByVal input As String, ByVal type As System.Type) As Object  Dim result As Object = Nothing  Dim serializer As New XmlSerializer(type)  Try    result = serializer.Deserialize(New XmlTextReader(New StringReader(input)))  Catch ex As Exception    Debug.WriteLine(ex.Message)  End Try   Return resultEnd FunctionPublic Shared Function SerializeObjectToXML(ByVal input As … Continue reading How to Serialize and Deserialize Your Objects

Sample Code Generator (XSDObjectGen) Tool

To download go to: http://go.microsoft.com/?linkid=5559918  

Generating Documentation for Your Visual Basic .NET Applications

Great article on generating docs for your VB.NET Application: http://msdn2.microsoft.com/en-us/library/Aa289191(VS.71).aspx

Language Enhancements in Visual Basic 2005

http://msdn.microsoft.com/vbasic/default.aspx?pull=/library/en-us/dnvs05/html/LanguageEnhancements.asp