<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="/docgen.php"?>

<document version="0.1">
	<name>Visual Basic .NET Forms</name>
	<category>Knowledge Base</category>
	<author>
		<name>Ashutosh Mukherjee</name>
		<email>ashutosh@desdevpro.com</email>
		<website>http://www.desdevpro.com</website>
	</author>
	<date>11 Aug 2009</date>
	<tags>
		<tag>Visual Basic</tag>
		<tag>VB.NET</tag>
		<tag>Tutorial Series</tag>
	</tags>
	
	<intro>
		Welcome to Visual Basic 2008, the most mature version yet of the most popular programming
language for building Windows and web applications. I will help you build your concepts bit-by-bit in this tutorial series. Think of this as an e-Classroom. If you have any comments/questions, you can use the comments box on the right, or you can contact me through e-mail.
	</intro>
	
	<para>
		<heading level='1'>The Default Form</heading>
		<text>In the Visual Basic .NET design time environment, the first thing to concentrate on is a strange, big square in the top left. That's called a form. It's actually the pretty bit of your program, the part that others will see when they launch your masterpiece. Granted, it doesn't look too attractive at the moment, but you'll soon discover ways to lick it into shape.</text>
		
		<text>To run the form, try this:</text>
		<endl/>
		<bullet>From the menu bar, click Debug</bullet>
		<bullet>From the drop down menu, click Start</bullet>
		<bullet>Alternatively, press the F5 key on your keyboard</bullet>
		<bullet>Your programme is launched</bullet>
		<endl/>
		
		<text>Congratulations! You have now created your very first programme. It should look like this:</text>
		
		<image>002_img1.jpg</image>
		
		<text>A VB .NET Form Running as a Program or rather we can say as an application</text>
		<text>Click the Red X button (close button in the controlbox) on the form to stop it from running. You will then be returned to the software environment.</text>
		<endl/>
		<text>If you compare the first form with the one above, you'll see that they look very similar. But the one above is actually a real program, something you could package and sell to unsuspecting village idiots.
		</text><endl/>
		<text>So what's going on? Why the two different views? Well, Visual Basic has two distinct environments, a Design environment, a Code environment and a Debug environment. Design Time is where you get to play about with the form, spruce it up, add textboxes, and buttons, and labels . Code editor is the one where you do your coding.  Debug is where you can test your program and see how well it performs or doesn't perform, as is usually the case.
		</text><endl/>
		<text>But don't worry about the terminology, for the time being. Just be aware that there's a three step process to VB programming: designing, coding and debugging.
		So, let's get on and do some designing! Before we can start designing a form, though, we need some tools. And where are tools kept? In a toolbox!</text>
		
		<endl/>
		<text>To be continued...</text>
	</para>
	</document>