Пример #1
0
 public void SetDROText(System.Windows.Forms.RibbonTextBox control, string text)
 {
     try
     {
         if (this.ribbon1.InvokeRequired)
         {
             SetDROTextCallback d = new SetDROTextCallback(SetDROText);
             Invoke(d, new object[] { control, text });
         }
         else
         {
             control.TextBoxText = text;
         }
     }
     catch { }
 }
Пример #2
0
        public void SetDROText(System.Windows.Forms.RibbonTextBox control, string text)
        {
            try
            {
                if (this.ribbon1.InvokeRequired)
                {

                    SetDROTextCallback d = new SetDROTextCallback(SetDROText);
                    Invoke(d, new object[] { control, text });

                }
                else
                {
                    control.TextBoxText = text;
                }
            }
            catch { }
        }