This is a migrated thread and some comments may be shown as answers.

Visual Studio crashes while in "Edit UI Elements" of RadTextBox

1 Answer 73 Views
Themes and Visual Style Builder
This is a migrated thread and some comments may be shown as answers.
mdanh
Top achievements
Rank 1
mdanh asked on 18 Aug 2010, 09:03 AM
I am using Visual Studio 2008 with the latest Telerik Winforms. If, for example, I drag a RadTextBox from the toolbox, and click "Edit UI Elements". Then, I choose FillPrimitive and attempt to set SmoothingMode to something like, say, "Invalid" (among other options)

Then immediately Visual Studio would say RadTextBox has thrown an exception in the designer and has been disabled. Error message is "Parameter is not valid" and no stack trace is available. The "element hierarchy editor " dialog is closed and VS hangs with 100% CPU usage (I have to terminate devenv.exe task to recover).

I know this is not a valid use case but should this be handled more gracefully? The exception dialog is OK but at least VS should not hang.

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 23 Aug 2010, 01:49 PM
Hello mdanh,
 
Thanks for writing.

This is a well known limitation of the System.Drawing library. Setting the Smoothing mode to  SmoothingMode.Invalid will throw an exception ("Parameter not valid") so, please do not specify this option.

Do not hesitate to contact us if you have other questions.

Greetings,

Peter
the Telerik team

 

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Themes and Visual Style Builder
Asked by
mdanh
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or