By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,376 Members | 1,599 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,376 IT Pros & Developers. It's quick & easy.

HELP: "variable undeclared/never assigned" error on "Public Shared" Panel Control

P: n/a
I wanted to access some properties of a panel control that is on a different
form. So, I went to the (Declarations) section of my main form (the form
with the panel) and changed the panel (called "panKnob") from "Friend
WithEvents" to "Public Shared WithEvents" so that I could access it from
another class (i.e. frmMain.panKnob.Visible=True")

I get this build error:
"The variable 'panKnob' is either undeclared or was never assigned."

Double clicking on it takes me to frmMain.InitializeComponent. The line is:

Any ideas? What is the best way to do this?
Nov 20 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.