Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Hiding the Script Combobox in FONT Dialog
 

Hiding the Script Combobox in FONT Dialog

hi Msdn ,

i am usign the custom font to hide the properties

Public Class MyCustomFont
    Inherits FontConverter
    Public Overrides Function GetPropertiesSupported(ByVal context As System.ComponentModel.ITypeDescriptorContext) As Boolean
        Return False
    End Function

End Class

Now i want to hide the Script : ComboBox which exists in the bottom of the FONT Dialog .

how can i implement in this code ??

Regards ,



VS
SilverPlate  Thursday, June 11, 2009 12:03 PM
Hi,

The Font class uses the System.Drawing.Design.FontEditor as theUI type editor. Unfortunately, the FontEditor class is not exposed, so we can't derive fromthis FontEditor class toimplement acustom UI type editor.

A solution to yourquestionis to derive directly from the UITypeEditor class and implement a custom UI type editor that meets your requirements. Please visit the following link for more information on implementing custom UI type editor:

"User Interface Type Editors Overview "
http://msdn.microsoft.com/en-us/library/ms171839(VS.80).aspx

Hope this helps.

Sincerely,
Linda Liu
Please remember to mark the replies as answers if they help and unmark them if they provide no help. end us any feedback you have about the help from MSFT at fbmsdn@microsoft.com.
Linda Liu  Tuesday, June 23, 2009 10:24 AM
Hi,

The Font class uses the System.Drawing.Design.FontEditor as theUI type editor. Unfortunately, the FontEditor class is not exposed, so we can't derive fromthis FontEditor class toimplement acustom UI type editor.

A solution to yourquestionis to derive directly from the UITypeEditor class and implement a custom UI type editor that meets your requirements. Please visit the following link for more information on implementing custom UI type editor:

"User Interface Type Editors Overview "
http://msdn.microsoft.com/en-us/library/ms171839(VS.80).aspx

Hope this helps.

Sincerely,
Linda Liu
Please remember to mark the replies as answers if they help and unmark them if they provide no help. end us any feedback you have about the help from MSFT at fbmsdn@microsoft.com.
Linda Liu  Tuesday, June 23, 2009 10:24 AM

You can use google to search for other answers

Custom Search

More Threads

• How to create and Invisible Groupbox
• How to manage menu items when a user login?
• ToolStripControlHost - Designer functionality
• Problem with Form Display
• How can I set Cursor property for design-time controls?
• Save changes of a pictureBox
• possible to use VS 2003 IDE "server explorer" behaviour?
• Expandable columns in DataGridView
• issues About Custom form Designer when running on .NetFramework2.0.
• UserControl, ParentControlDesigner and dragging in designer mode