Im VERY new to all of this and i need some help. I have two Component Classes, RButton and TabPanel.
The TabPanel is a container to the RButton Component. When the OnMouseLeave event is raised on RButton Component Class I want to raise an event in the TabPanel Component Class.
protected override void OnMouseLeave(EventArgs e)
if (typeof(TabPanel) == this.Parent.GetType())
TabPanel tb = new TabPanel();
tb = ((TabPanel)this.Parent);
tb.ResetBG; //Error Occures Here, ResetBG is exposed here and can be called
//MessageBox.Show(tb.Name); //Does show the correct name for this TabPanel
The event in the in the TabPanel Component Class looks like this:
public void ResetBG()
m_mode = 5;
When i try and compile the compiler has an issue with:
Error 1 Only assignment, call, increment, decrement, and new object expressions can be used as a statement
Do i need to delegate or something? very lost and not been able to find anything on the Internet (mostly due to im not sure what to look for)
Thanks for your help