Telerik Forums
UI for WinForms Forum
1 answer
197 views

The exception occurs when I closed the window in thr form-activated state.

main

{
    Thread th = new Thread();
    th = new Thread(StartSetting);
    th.IsBackground = false;
    th.Start();
}

public void StartSetting()
{
    RadForm rf = new RadForm();
    rf.ShowDialog();
}

rf Loading.... <---
main() kill <---
show exception <--
====================================================================================

---------------------------

---------------------------
Error loading theme from resource Mworks.MSOffice.Toolbar.Client.Process.Theme.ButtonTheme.xml: System.Threading.ThreadAbortException: 스레드가 중단되었습니다.

   위치: Telerik.WinControls.XmlSerialization.ComponentXmlSerializer.ReadElementInObject(XmlReader reader, PropertyDescriptor property, Object toRead)

   위치: Telerik.WinControls.XmlSerialization.ComponentXmlSerializer.ReadObjectElement(XmlReader reader, Object toRead)

   위치: Telerik.WinControls.XmlSerialization.ComponentXmlSerializer.ReadCollectionElement(XmlReader reader, IList toRead)

   위치: Telerik.WinControls.XmlSerialization.ComponentXmlSerializer.ReadElementInObject(XmlReader reader, PropertyDescriptor property, Object toRead)

   위치: Telerik.WinControls.XmlSerialization.ComponentXmlSerializer.ReadObjectElement(XmlReader reader, Object toRead)

   위치: Telerik.WinControls.XmlTheme.DeserializePartiallyThemeFromReader(XmlReader reader, String themeLocation)

   위치: Telerik.WinControls.XmlTheme.LoadPartiallyFromStorage(ThemeSource themeSource)
---------------------------
확인  
---------------------------

---------------------------

---------------------------
Error applying theme to an element of type Telerik.WinControls.RootRadElement that is part of control: Telerik.WinControls.UI.RadButton. Theme builder: Telerik.WinControls.DefaultStyleBuilder. Theme file location: . Exception details:System.Threading.ThreadAbortException: 스레드가 중단되었습니다.

   위치: System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)

   위치: Telerik.WinControls.StyleSheet.ProcessStyle(RadElement rootElement, Boolean isDynamicallyAddedElement)

   위치: Telerik.WinControls.RadElement.OnPropertyChanged(RadPropertyChangedEventArgs e)

   위치: Telerik.WinControls.VisualElement.OnPropertyChanged(RadPropertyChangedEventArgs e)

   위치: Telerik.WinControls.RadComponentElement.OnPropertyChanged(RadPropertyChangedEventArgs e)

   위치: Telerik.WinControls.RadItem.OnPropertyChanged(RadPropertyChangedEventArgs e)

   위치: Telerik.WinControls.RootRadElement.OnPropertyChanged(RadPropertyChangedEventArgs e)

   위치: Telerik.WinControls.RadObject.UpdateEffectiveValue(RadProperty dp, RadPropertyMetadata metadata, Boolean isCoerceValue, Boolean isOldValueValid, Object oldValue, ValueSource oldValueSource, Boolean oldValueIsDeferred, Boolean coerceWithDeferredReference)

   위치: Telerik.WinControls.RadObject.SetValueCommon(RadProperty dp, Object value, RadPropertyMetadata metadata, Boolean coerceWithDeferredReference)

   위치: Telerik.WinControls.RadObject.SetValue(RadProperty dp, Object value)

   위치: Telerik.WinControls.StyleBuilderBase.BuildStyle(RadElement element)

   위치: Telerik.WinControls.RadElement.ApplyTheme()
---------------------------
확인  
---------------------------

---------------------------

---------------------------
Error applying theme to an element of type Telerik.WinControls.RootRadElement that is part of control: Telerik.WinControls.UI.RadButton. Theme builder: Telerik.WinControls.DefaultStyleBuilder. Theme file location: . Exception details:System.Threading.ThreadAbortException: 스레드가 중단되었습니다.

   위치: System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)

   위치: System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)

   위치: System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)

   위치: System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

   위치: System.Reflection.RuntimePropertyInfo.GetValue(Object obj, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture)

   위치: System.Reflection.RuntimePropertyInfo.GetValue(Object obj, Object[] index)

   위치: System.Drawing.ColorConverter.FillConstants(Hashtable hash, Type enumType)

   위치: System.Drawing.ColorConverter.get_SystemColors()

   위치: System.Drawing.ColorConverter.GetNamedColor(String name)

   위치: System.Drawing.ColorConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)

   위치: System.ComponentModel.TypeConverter.ConvertFromString(ITypeDescriptorContext context, CultureInfo culture, String text)

   위치: Telerik.WinControls.XmlSerialization.ObjectSerializationInfo.ConvertFromString(String value)

   위치: Telerik.WinControls.XmlSerialization.ComponentXmlSerializer.ReadObjectElement(XmlReader reader, Object toRead)

   위치: Telerik.WinControls.XmlSerialization.ComponentXmlSerializer.ReadCollectionElement(XmlReader reader, IList toRead)

   위치: Telerik.WinControls.XmlSerialization.ComponentXmlSerializer.ReadElementInObject(XmlReader reader, PropertyDescriptor property, Object toRead)

   위치: Telerik.WinControls.XmlSerialization.ComponentXmlSerializer.ReadObjectElement(XmlReader reader, Object toRead)

   위치: Telerik.WinControls.XmlSerialization.ComponentXmlSerializer.ReadCollectionElement(XmlReader reader, IList toRead)

   위치: Telerik.WinControls.XmlSerialization.ComponentXmlSerializer.ReadElementInObject(XmlReader reader, PropertyDescriptor property, Object toRead)

   위치: Telerik.WinControls.XmlSerialization.ComponentXmlSerializer.ReadObjectElement(XmlReader reader, Object toRead)

   위치: Telerik.WinControls.PartiallyLoadedStyleSheet.get_PropertySettingGroups()

   위치: Telerik.WinControls.StyleSheet.ProcessStyle(RadElement rootElement, Boolean isDynamicallyAddedElement)

   위치: Telerik.WinControls.RadElement.OnPropertyChanged(RadPropertyChangedEventArgs e)

   위치: Telerik.WinControls.VisualElement.OnPropertyChanged(RadPropertyChangedEventArgs e)

   위치: Telerik.WinControls.RadComponentElement.OnPropertyChanged(RadPropertyChangedEventArgs e)

   위치: Telerik.WinControls.RadItem.OnPropertyChanged(RadPropertyChangedEventArgs e)

   위치: Telerik.WinControls.RootRadElement.OnPropertyChanged(RadPropertyChangedEventArgs e)

   위치: Telerik.WinControls.RadObject.UpdateEffectiveValue(RadProperty dp, RadPropertyMetadata metadata, Boolean isCoerceValue, Boolean isOldValueValid, Object oldValue, ValueSource oldValueSource, Boolean oldValueIsDeferred, Boolean coerceWithDeferredReference)

   위치: Telerik.WinControls.RadObject.SetValueCommon(RadProperty dp, Object value, RadPropertyMetadata metadata, Boolean coerceWithDeferredReference)

   위치: Telerik.WinControls.RadObject.SetValue(RadProperty dp, Object value)

   위치: Telerik.WinControls.StyleBuilderBase.BuildStyle(RadElement element)

   위치: Telerik.WinControls.RadElement.ApplyTheme()
---------------------------
확인  
---------------------------

Deyan
Telerik team
 answered on 03 Jun 2009
5 answers
379 views
Hi everybody.
I have a gridview with 3 columns, one of which is a of gridviewcheckboxcolumn type. gridviewcheckboxcolumn is only one which can be edited, and additionally is unbound. Now I'm trying  to check/uncheck cells in gridviewcheckboxcolumn but nothing happens. It seems like the cells are read only. Do I have to write an cell event handler, or may be just to set some column proprieties?
Thanks.
Best regards, Frank.
Prad
Top achievements
Rank 2
 answered on 02 Jun 2009
4 answers
1.0K+ views
I have a chart that is bound to a datasource.  When data is updated in the table, the chart is not refreshed or updated.  I have tried:
.update()
.updategraphics()
.refresh()

And also:
.datasource= mybindingsource
.databind()

The latter causes a large red X to be displayed instead of a chart.

Any help?
Michelle
Top achievements
Rank 1
 answered on 02 Jun 2009
5 answers
160 views
Hi,

I am adding the RadPanelbarGroupElement in RadPanelbar control on Runtime and adding the populated Treeview control in each group.  The RadPanelbar is in OutlookNav style and for each group, EnableHostControlMode is true.

Everything works fine but if I click any of the Groups 4 times, the whole application hangs.

Please suggest. See the code below:

 

private void PreapreNavigationControl(Feature feature)
        {
          
            if (feature.Groups.Count > 0)
            {
                foreach (Group group in feature.Groups)
                {
                    //Adding the treeview
                    RadTreeView treeView = new RadTreeView();

                    RadPanelBarGroupElement groupElement = new RadPanelBarGroupElement();
                    radPanelBarNavigation.Items.AddRange(new Telerik.WinControls.RadItem[] {groupElement});
                  
                    ConfigureGroupElement(groupElement, group.Name, out treeView);

                    //Adding the Root Node
                    RadTreeNode rootNode = createAndRegisterTreeNode(group.Name, string.Empty);
                    treeView.Nodes.Add(rootNode);

                    foreach (Task task in group.Tasks)
                    {
                        RadTreeNode taskNode = createAndRegisterTreeNode(task.Name, task.NavigationCommandName);
                        rootNode.Nodes.Add(taskNode);
                    }

                }
            }
        }

private RadPanelBarGroupElement ConfigureGroupElement(RadPanelBarGroupElement groupElement, string groupElementName, out RadTreeView treeView)
{
            //RadPanelBarGroupElement groupElement = new RadPanelBarGroupElement();
            treeView = new RadTreeView();

            //Designer Code

            groupElement.ContentPanel.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(treeView)).BeginInit();

            groupElement.Caption = groupElementName;

            // groupElement.ContentPanel
            groupElement.ContentPanel.BackColor = System.Drawing.SystemColors.ControlLightLight;
            groupElement.ContentPanel.CausesValidation = true;
            groupElement.ContentPanel.Controls.Add(treeView);
            groupElement.EnableHostControlMode = true;
            groupElement.Text = groupElementName;
           
            // treeView

            treeView.BackColor = System.Drawing.Color.Transparent;
            treeView.Dock = System.Windows.Forms.DockStyle.Fill;
            treeView.Font = new System.Drawing.Font("Tahoma", 8.6F);
            treeView.Location = new System.Drawing.Point(0, 0);
            treeView.ShowItemToolTips = true;
            treeView.ShowLines = true;
            treeView.ShowRootLines = true;
            treeView.ThemeClassName = "Telerik.WinControls.UI.RadTreeView";
            treeView.Size = new System.Drawing.Size(277, 416);

            groupElement.ContentPanel.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(treeView)).EndInit();

            return groupElement;
        }



Jordan
Telerik team
 answered on 02 Jun 2009
5 answers
150 views
I have a MaskEditBox for a phone number.  When I click out or tab out of the maskeditbox the value is replaced with (___) ___-____.  Is there a property that I need to set or some other workaround to fix this?
Boryana
Telerik team
 answered on 02 Jun 2009
2 answers
240 views
Hello,

I'm using a BindingNavigator and a RadGridView on the same Form with the same BindingSource.

If I change the sorting in the RadGridView it has no effects on the BindingNavigator or the BindingSource sorting.
Going to the next item by clicking on the BindingNavigator will result in jumps in RadGridView

Using the original GridView with the BindingNavigator, they always have the same sorting.

I also tried to use the RadGridView.SortChanged event to set the BindingSource-sorting but the SortChangedEventArgs are always nothing.

Is there a solution or can you give me a hint how to solve this problem?

Thanks
Christian
Declan
Top achievements
Rank 2
 answered on 02 Jun 2009
1 answer
138 views
Is there some property that will allow me to set the states that I want to allow my DockPanel to dock with.  For example, I have a window that I only want the user to be able to dock to the sides and not allow as a state of document or floating.

Thanks in advance.
Lee
Julian Benkov
Telerik team
 answered on 01 Jun 2009
1 answer
252 views
Hi.

I'm having a fairly frustrating problem with the chart control, that I can't get over.

I'm trying to use the same chart for different reports based on what the user chooses.

One report is using the chart by binding data to it. The other is manually populating it. The graph works in both scenarios. My problem is when I try to change the X-Axis label.

Let's take this scenario. First, I generate a databound graph. Let's say it comes back with 4 bars on the X-Axis. It looks fine and works fine.

Then I generate a report which uses the graph without databinding. Let's say it needs to display 8 bars. Now if I set:

rdChart.PlotArea.XAxis.AutoScale =

True

 


Then the graph works fine, but the x-axis item labels are marked 1,2,3,4..., which I need to change.

So I added a loop to change the X-Axis labels:

 

Dim labels() As String = lbls.Split(",")

 

 

For i = 0 To rdChart.PlotArea.XAxis.Items.Count - 1

 

rdChart.PlotArea.XAxis(i).TextBlock.Text = labels(i)

 

Next

 


Now this code doesn't do anything, unless I add: 

rdChart.PlotArea.XAxis.AutoScale =

False

 


before doing the loop.

Now that's where the problem is. If I set AutoScale to false, the Chart stops populating the X-Axis items correctly. So for example, if the the databound chart had returned 4 bars on X-Axis, then it stays at 4, even though if the new series is supposed to have 8 bars.

I have tried many different combinations of 

rdChart.Series.Clear()

rdChart.Series.ClearItems()

rdChart.PlotArea.XAxis.ClearDataBoundState()
rdChart.Update()

 

rdChart.UpdateGraphics()

rdChart.Refresh()

and then setting the AutoScale to true, and then setting it back to false, but nothing seems to clear up the X-Axis display correctly. The number of X-Axis items displayed is not refreshing if I trun AutoScale off, and I can't set the X-Axis item labels if it's on. HELP!

Dwight
Telerik team
 answered on 01 Jun 2009
3 answers
213 views
Hi,

I'm testing the RadMessageBox  and each time I'm calling the show method, the message is appering in the upper left corner of the screen. Reading the help it seems to be centered only for winforms, but is saying nothing about using it in a user control dll development.

Do you have any idea about how can I solve this problem?

Thanks & regards

Julio
Victor
Telerik team
 answered on 01 Jun 2009
1 answer
129 views
Does Telerik provide anything that can render PDF documents inside a win forms application?
Nick
Telerik team
 answered on 01 Jun 2009
Narrow your results
Selected tags
Tags
GridView
General Discussions
Scheduler and Reminder
Treeview
Dock
RibbonBar
Themes and Visual Style Builder
ChartView
Calendar, DateTimePicker, TimePicker and Clock
DropDownList
Buttons, RadioButton, CheckBox, etc
ListView
ComboBox and ListBox (obsolete as of Q2 2010)
Form
Chart (obsolete as of Q1 2013)
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
PropertyGrid
Menu
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
Tabstrip (obsolete as of Q2 2010)
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
NavigationView
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?