I am in a vb.net class and I'm having trouble understanding some of the errors I receive when programming. The class is online so I don't have the interaction with a professor I may have in a traditional setting. When I code in the examples in the book to try to learn from it, they are riddled with errors. What am I missing? For example, and this applies to what I'm working on now, I create a button and a listbox and code:
Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim a As Double Dim b As Double = 3 stResults.Items.Clear() stResults.Items.Add(a) stResults.Items.Add(b) a = 5 stResults.Items.Add(a * (2 + b)) End Sub End ClassThe result should be: 0 3 25 each on a separate line. However, I receive errors that say, 'tResults' is not declared, Syntax error, 'Label 1' is already defined. The auto-error correction option just complicates it. What am I missing?? What do I need to include to make this an error-free program?? Thank you for your help. Private
Last edited by a moderator: