I think the reason you can't do that is because you're trying to assign a variable to the value of an object, but the object doesn't exist yet. You could set it to a constant.

Maybe try declaring your variable there, but do the assignment in Form_Load?