private void ClickableLabel_MouseEnter(object sender, EventArgs e) { ClickableLabel customLabel = sender as ClickableLabel; customLabel.ForeColor = ClickableLabel.FocusTextColour; customLabel.Font = new Font("Calibri", customLabel.FontSize, FontStyle.Bold); this.Cursor = Cursors.Hand; }
private void ClickableLabel_MouseLeave(object sender, EventArgs e) { ClickableLabel customLabel = sender as ClickableLabel; customLabel.ForeColor = ClickableLabel.NormalTextColour; customLabel.Font = new Font("Calibri", customLabel.FontSize, FontStyle.Regular); this.Cursor = Cursors.Default; }
private void ClickableLabel_Click(object sender, EventArgs e) { ClickableLabel customLabel = sender as ClickableLabel; customLabel.showExplanation(); }