formlesstree4 18 Report post Posted July 1, 2009 Welcome to the first Visual Basic .NET 2008 Tutorial! First off, You need to get the IDE (Integrated Development Editor) to be able to Code and Compile your program. Open your Web Browser and browse to http://www.microsoft.com/express/vb/Default.aspx (Or click here) On the page, you need to look for a little area that's shown here: Download this file, and run it. Click Yes/Ok on anything that pops up. You'll want to leave the PC for a bit because this takes a long time to get. You might have to restart, it depends actually. Proceed when you're done. Now that You have the actual IDE, let's look on the inside. This is the IDE for Visual Basic .NET 2008 (Though mine says Visual Studio, there's hardly any difference.) Go up to File and hit New Project (Or Press Ctrl + N) and the following dialog should show up: In the upper left hand corner, there's a drop down box with three framework versions. Select the 2.0 Framework. Next, you see the name "WindowsApplication1". Change that to: "MessageBox Tutorial" and press OK. Your IDE should change to look something like this: On the left hand side of the screen are a list of Controls. These controls allow us to modify the form and other properties of the program. Locate the Button Control, select it, and click on the form. If everything worked right, your form should look like this: Double Click the newly created Button. Your screen should have transformed into something new: Hopefully, your cursor is inside the Sub labeled "Button1_Click" Inside this Sub, type in the following: Messagebox.show("Hello World!") This code is very simple. What it's telling Visual Basic .NET is to display a small MessageBox with the text "Hello World" inside of it! Do you see that little Green Arrow? That's our debugging arrow. If you click that, Visual Basic .NET will run the program directly in the IDE, so you can make sure everything works correctly! Go ahead and press that. If everything worked correctly, this is what you should see: Since the form loaded, there were no errors. Go ahead and click the button on the form. If it works, this should pop up: There you go! That's your first very simple Hello World program in Visual Basic .NET! Share this post Link to post Share on other sites
Marked 197 Report post Posted July 2, 2009 I'm getting an objevt not found error when i try and download the program... anyone else? the link is this: http://download.microsoft.com/download/A/5...62D/vbsetup.exe Share this post Link to post Share on other sites
Polraudio 122 Report post Posted July 2, 2009 No error for me. Nice that your putting these up on here. Share this post Link to post Share on other sites