VB 2010 'variable' is not declared. It may be inaccessible due to it's protection level
问题 i'm sort of a n00b to VB and was wondering how to make a variable available across multiple Subs. It's just a test app to get familiar with VB. My Code: Public Class Sentences Private Sub SentenceBox_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SentenceBox.TextChanged If Me.Text = Trim(Sentence) Then MsgBox("Good job!") Main_Menu.Show() Me.Close() End If End Sub Private Sub ABCs_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase