Designer Error

6 posts, 0 answers
  1. Kirk Couser
    Kirk Couser avatar
    26 posts
    Member since:
    Apr 2009

    Posted 15 Jul 2011 Link to this post

    Has anyone else gotten this error after saving the form with the RichTextBox and reopening the designer in Vs2010?

    at System.ComponentModel.ReflectPropertyDescriptor.SetValue(Object component, Object value)
    at Microsoft.VisualStudio.Shell.Design.VsTargetFrameworkPropertyDescriptor.SetValue(Object component, Object value)
    at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializePropertyAssignStatement(IDesignerSerializationManager manager, CodeAssignStatement statement, CodePropertyReferenceExpression propertyReferenceEx, Boolean reportError)
    at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeAssignStatement(IDesignerSerializationManager manager, CodeAssignStatement statement)
    at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeStatement(IDesignerSerializationManager manager, CodeStatement statement)
  2. Kirk Couser
    Kirk Couser avatar
    26 posts
    Member since:
    Apr 2009

    Posted 15 Jul 2011 Link to this post

    Seems to be caused by setting the IsSpellCheckingEnabled property to true in the designer, leaving it as false corrects the error.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Kirk Couser
    Kirk Couser avatar
    26 posts
    Member since:
    Apr 2009

    Posted 15 Jul 2011 Link to this post

    However setting the property programatically after the InitializeComponent call works fine
  5. Kirk Couser
    Kirk Couser avatar
    26 posts
    Member since:
    Apr 2009

    Posted 15 Jul 2011 Link to this post

    Also upon adding 2 RichTextBox controls and enabling Spell Check in both to the same form in different RadPageViews you get this exception:

    System.NullReferenceException was unhandled
      Message=Object reference not set to an instance of an object.
      Source=Telerik.WinControls.RichTextBox
      StackTrace:
           at Telerik.WinControls.RichTextBox.TextSearch.DocumentTextMap.MoveToFirstBoxInWord(DocumentPosition position)
           at Telerik.WinControls.RichTextBox.TextSearch.DocumentTextMap.InitMap(DocumentPosition fromPosition, DocumentPosition toPosition)
           at Telerik.WinControls.RichTextBox.Proofing.DocumentProofingManager.UpdateIncorrectWordsList(DocumentPosition fromPosition, DocumentPosition toPosition)
           at Telerik.WinControls.RichTextBox.Proofing.DocumentProofingManager.UpdateIncorrectWordsList()
           at Telerik.WinControls.RichTextBox.Model.RadDocument.set_IsSpellCheckingEnabled(Boolean value)
           at Telerik.WinControls.RichTextBox.DocumentView.set_IsSpellCheckingEnabled(Boolean value)
           at Telerik.WinControls.RichTextBox.RadRichTextBox.set_IsSpellCheckingEnabled(Boolean value)

    Not setting the IsSpellCheckingEnabled to true for one of them after a recompile corrected the error.
  6. Kirk Couser
    Kirk Couser avatar
    26 posts
    Member since:
    Apr 2009

    Posted 20 Jul 2011 Link to this post

    I also noticed on an HP Mini netbook (Intel Atom CPU), there is a 2-3 second delay upon starting to type in a RichTextBox.  On an Intel i3 and i7 notebook this delay isn't noticeable.  Is there any way I could call whatever is being initialized (I assume the dictionary) ahead of time so there won't be a delay?

    Also the spellchecking seems to randomly stop working when typing, no errors/exceptions being thrown.  Wasn't sure if this was known or not.
  7. Svett
    Admin
    Svett avatar
    728 posts

    Posted 21 Jul 2011 Link to this post

    Hi Kirk,

    I managed to reproduce the null reference exception issue. It will be addressed in the upcoming service pack. In the meantime, you can set the property at run-time after the InitializeComponents method call. For the upcoming service pack our goal is to fix all critical and known issues regarding RadRichTextBox control. We know about the performance issues. They will be improved in one of the next major releases.

    I did not manage to reproduce the spell checking issue. Could you illustrate the exact steps that we should follow to achieve it?

    I updated your Telerik points.

    Best wishes,
    Svett
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Back to Top
UI for WinForms is Visual Studio 2017 Ready