Ticket Q343592
Visible to All Users

RichEditControl used for Outlook Addin

created 14 years ago

Hello Support Team,
I used the RichEditControl with a RichEditBarController and a BarManager for an Outlook addin based on windows forms.
As you can see in the attached addin, the bar buttons (e.g. redo, undo, copy, cut, font, font size) are not synchronous with the rich edit selected text.
I've tried the same code (copied from your RichEdit sample) in a windows application and there it works fine.
How can I fix this issue?
I've attached the windows forms application and the outlook addin. You can use the setup file (MyAddin1Setup(1.0.0).msi) to install the outlook addin.
Thanks allot!

Show previous comments (5)
ID ID
InLoox Developers 13 years ago

    Hello Alessandro,
    Thanks allot for your reply. I've tested the addin with the "Form.ShowDialog" and "Form.Show" methods.
    The problem occurs only in the "Form.ShowDialog" case, if the dialog is called modal. In the "Form.Show" case, the controls work synchronously to the rich edit control.
    Why blocks “Application.DoEvents” the message loop and is there a solution to force the message loop?
    The "Application.MessageLoop" property of the addin is set to "true".

    Alessandro (DevExpress Support) 13 years ago

      Hello Andreas,
      Thank you for your update. It seems very strange because this issue is not replicated in a regular .NET application even if the Application.Run() method is not called (see the attached screenshot). Thus, I believe that this issue is specific to COM. Please try recommendations from corresponding forums and sites. Here are some examples:
      How to: Support COM Interop by Displaying Each Windows Form on Its Own Thread
      How to: Support COM Interop by Displaying Windows Forms on a Shared Thread
      Why does ShowDialog not block the UI thread completely.
      Thanks,
      Alessandro.

      ID ID
      InLoox Developers 13 years ago

        Thanks allot, we had fixed that issue

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.