My Code Is:

Code:
Public Class Form1
    Dim FreeSpace As String = "Panel16.Location"

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim button As String = "button1.location"
        Dim panel As String = "panel1.location"
        Call MoveButton()
    End Sub

    Private Sub MoveButton()
        button = FreeSpace
    End Sub
End Class
I get an error in my private sub named "MoveButton" because "button" is not declared. I didn't Dim "button" in that sub because when I use the Call command in another sub, I want to use what "button" is "dim" there. How do i ignore the error in the private sub "MoveButton"? Thanks..