PDA

View Full Version : Visual Basic - Why do I get the wrong code? +rep



-Adam
24-07-2010, 11:14 PM
Well, I look at tutorials for making things such as web browsers, and they tell me to double click Form1. I double click that, and im supposed to have this:
Public Class Form1
Dim int As Integer = 0

But instead I get all this:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void Form1_Load(object sender, EventArgs e)
{

}
}

Do I need to change some settings or something. Help please, +rep :)

Pyroka
24-07-2010, 11:16 PM
itd probs help if you sorted out your brackets

i might be being stupid ere i havent done vb in bloody ages

btw you runnin vba or vb.net

Want to hide these adverts? Register an account for free!