Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Tools - VSB, Control Spy, Shape Editor > Small Bug in VSB

Not answered Small Bug in VSB

Feed from this thread
  • Posted on Apr 3, 2008 (permalink)

    This isn't a real game ender - just something to note.

    If you pick a font in the style builder that doesn't have a 'normal' setting (like a bold-only font) the VSB will crash. Easy to reproduce - try modifying the font of a control, then use the down-arrow to cycle through all the fonts on your system.

    System.ArgumentException: Font 'Berlin Sans FB Demi' does not support style 'Regular'. 
       at System.Drawing.Font.CreateNativeFont() 
       at System.Drawing.Font.Initialize(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont) 
       at System.Drawing.Font..ctor(String familyName, Single emSize, FontStyle style) 
       at Telerik.WinControls.Themes.Design.TextSettingsControl.radComboBox1_SelectedIndexChanged(Object sender, EventArgs e) 
       at Telerik.WinControls.UI.RadComboBox.OnSelectedIndexChanged(EventArgs e) 
       at Telerik.WinControls.UI.RadComboBox.comboBoxElement_SelectedIndexChanged(Object sender, EventArgs e) 
       at Telerik.WinControls.UI.RadComboBoxElement.OnSelectedIndexChanged(EventArgs e) 
       at Telerik.WinControls.UI.RadComboBoxElement.listBoxElement_SelectedIndexChanged(Object sender, EventArgs e) 
       at Telerik.WinControls.UI.RadListBoxElement.OnSelectedIndexChanged(SelectedIndexChangedEventArgs e) 
       at Telerik.WinControls.UI.RadListBoxElement.CallSelectedIndexChanged() 
       at Telerik.WinControls.UI.RadListBoxElement.selectedIndices_CollectionChanged(Object sender, RadListBoxItemIndexCollectionChangedEventArgs e) 
       at Telerik.WinControls.UI.RadListBoxItemIndexCollection.OnCollectionChanged(RadListBoxItemIndexCollectionChangedEventArgs e) 
       at Telerik.WinControls.UI.RadListBoxItemIndexCollection.OnInsertComplete(Int32 index, Object value) 
       at System.Collections.CollectionBase.System.Collections.IList.Add(Object value) 
       at Telerik.WinControls.UI.RadListBoxItemIndexCollection.Add(Int32 value) 
       at Telerik.WinControls.UI.RadListBoxElement.set_SelectedIndex(Int32 value) 
       at Telerik.WinControls.UI.RadComboBoxElement.set_SelectedIndex(Int32 value) 
       at Telerik.WinControls.UI.RadComboBoxElement.ExecuteDropDownStyleKeyDown(KeyEventArgs e) 
       at Telerik.WinControls.UI.RadComboBoxElement.textBox_KeyDown(Object sender, KeyEventArgs e) 
       at System.Windows.Forms.KeyEventHandler.Invoke(Object sender, KeyEventArgs e) 
       at Telerik.WinControls.UI.RadTextBoxItem.OnKeyDown(KeyEventArgs e) 
       at Telerik.WinControls.UI.RadTextBoxItem.TextBoxControl_KeyDown(Object sender, KeyEventArgs e) 
       at System.Windows.Forms.Control.OnKeyDown(KeyEventArgs e) 
       at System.Windows.Forms.Control.ProcessKeyEventArgs(Message& m) 
       at System.Windows.Forms.Control.ProcessKeyMessage(Message& m) 
       at System.Windows.Forms.Control.WmKeyChar(Message& m) 
       at System.Windows.Forms.Control.WndProc(Message& m) 
       at System.Windows.Forms.TextBoxBase.WndProc(Message& m) 
       at System.Windows.Forms.TextBox.WndProc(Message& m) 
       at Telerik.WinControls.UI.RadTextBoxBase.WndProc(Message& message) 
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) 
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) 
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) 
     
     

    Reply

  • Mike Mike admin's avatar

    Posted on Apr 4, 2008 (permalink)

    Hello Pawz,

    Thank you for reporting this issue. I'll make sure we address it soon. Your Telerik points have been updated. Until we address this, you can use the "expert" property grid window in order to set the Font property of each element.

    You are more than welcome to contact me with any other questions you have.

    Sincerely yours,
    Mike
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Tools - VSB, Control Spy, Shape Editor > Small Bug in VSB