I am trying to replace the FontStyle Family property to display a list of Fonts using the FontComboBox instead of the standard string box. Can somebody help as I am always getting one item (none) in my drop-down list and a list of all FontComboBox properties as sub-properties?
ADAdministrator Syncfusion Team August 16, 2004 02:42 PM
Please follow the code below to achieve this :
this.propgrid.SelectedObject = new FontComboBoxInPropertyGrid();
public class FontComboBoxInPropertyGrid
public bool Cb
public class FontComboBoxInPropertyGridEditor : UITypeEditor
public override bool GetPaintValueSupported(ITypeDescriptorContext context)
public override void PaintValue(PaintValueEventArgs e)
// Have your custom method here to draw the FontComboBox }
Please let me know if you need further assiatance. Thanks for choosing Syncfusion products.
FRFrancois R. RenaudAugust 16, 2004 07:26 PM
Thank you for the advice. I was trying to draw the FontListBox directly in UIEditor EditValue instead of using the method DropDownControl:
FontListBox flb = new FontListBox();
ADAdministrator Syncfusion Team August 17, 2004 03:25 PM
Thanks for the update. I would appreciate if you could create a Direct-Trac incident in this regard, and provide us with the following information :
1. A test sample that shows your implementation of this.
2. Does this "FontStyle Family property" that you are referring to belong to a custom control that you have created ?