Generating .NET Code Using Visio Enterprise Architect's UML
Hope fully this will helps to beginners in using Visio to generate .Net code.
You can read the article at
http://www.w3coder.com/vbnet/NETWithUML.aspx
or at
http://www.microsoft.com/india/msdn/articles/260.aspx
NOTE: Link updated.