I am trying to write code in the Mouse_Hover event of a panel in my winform application using C #. This is my code.
private void viewscreen_MouseHover(object sender, EventArgs e) { statuspnl.Enabled = true; statuspnl.Visible = true; }
but the problem is that the event does not fire when I click on the viewbar.
// viewscreen // this.viewscreen.BackColor = System.Drawing.SystemColors.ActiveCaptionText; this.viewscreen.Controls.Add(this.statuspnl); this.viewscreen.Location = new System.Drawing.Point(208, 16); this.viewscreen.Name = "viewscreen"; this.viewscreen.Size = new System.Drawing.Size(370, 290); this.viewscreen.TabIndex = 0; this.viewscreen.MouseHover += new System.EventHandler(this.viewscreen_MouseHover);
source share