private void rtb_selection_changed(object sender, EventArgs e)
{
Update_Font_Lbl();
}
private void tbctrl_main_Selected(object sender, TabControlEventArgs e)
{
(this.tbctrl_main.SelectedTab.Tag as RichTextBox).Selectionchanged += new EventHandler(rtb_selection_changed);
}
Someone once told me if an event subscriber lasts longer then the event publisher then you are usually safe. The problem is sometimes it's hard for me to tell what is and isn't the publisher and subscriber. Is this safe code?

New Topic/Question
Reply



MultiQuote






|