View Single Post
Old 06-15-2014, 07:41 AM
PlausiblyDamp's Avatar
PlausiblyDamp PlausiblyDamp is offline
Ultimate Contributor

Forum Leader
* Expert *
Join Date: Nov 2003
Location: Newport, Wales
Posts: 2,058

When you prefix a variable with Me you are telling VB to refer to a variable declared at the class level i.e. outside of an individual method. pnlMain is defined within the Load event though and not at the class level.

If you remove the Me from the front of that line it should work.
Intellectuals solve problems; geniuses prevent them.
-- Albert Einstein

Posting Guidelines Forum Rules Use the code tags
Reply With Quote