Visual Basic .NET/Style Guide

This is the style guide for the Visual Basic .NET wikibook. Please try to follow it when making changes or additions to this book. If you find a page that does not follow this guide please change it.

Code

edit

When adding code examples, please color it as it would appear in VB .NET. Use the span HTML Tags to do this. Example:

<span style="color:green;">' This is a comment</span>
 <span style="color:blue;">Dim</span> x <span style="color:blue;">As</span> Integer = 5
 <span style="color:blue;">Dim</span> s <span style="color:blue;">As</span> String = <span style="color:#A31515;">"Hello World!"</span>

produces:

' This is a comment
Dim x As Integer = 5
Dim s As String = "Hello World!"
Apologies I just stumbled across this and have been updating some of the pages using the <syntaxhighlight lang="vbnet"> tag. Please feel free to revert Pluke (discusscontribs) 15:15, 25 February 2012 (UTC)