Beispiel #1
0
 private void SearchForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (richTextBox != null && !richTextBox.IsDisposed)
     {
         int pos = IRCRichTextBox.GetVScrollPos(richTextBox);
         if (saver.Left > -1)
             saver.Paste();
         this.richTextBox.DeselectAll();
         IRCRichTextBox.SetVScrollPos(richTextBox, pos);
     }
 }
Beispiel #2
0
        private void irtbPrintMessage_InnerMouseWheel(object sender, MouseEventArgs e)
        {
            int pos = IRCRichTextBox.GetVScrollPos(this.chatRTB);

            IRCRichTextBox.SetVScrollPos(this.chatRTB, pos - e.Delta / 5);
        }