Hiding the Script Combobox in FONT Dialog
-
Hi CP, i am using 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 ,
-
Hi CP, i am using 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 ,
I don't know if this is what you are looking for or not. This doesn't make the combobox disappear completely, but it gets rid of all of the choices except for the default.
Dim myFont As New FontDialog myFont.AllowScriptChange = True myFont.ShowDialog()
Hope that helps. -Ray
-
I don't know if this is what you are looking for or not. This doesn't make the combobox disappear completely, but it gets rid of all of the choices except for the default.
Dim myFont As New FontDialog myFont.AllowScriptChange = True myFont.ShowDialog()
Hope that helps. -Ray
Public Class MyCustomFont Inherits FontConverter Public Overrides Function GetPropertiesSupported(ByVal context As System.ComponentModel.ITypeDescriptorContext) As Boolean Return False End Function End Class <Category("Appearance")> <Description("The font used to display text in the control")> _ <TypeConverter(GetType(MyFont))> _ Public Property Font() As Font Get Return _Font End Get Set(ByVal Value As Font) _Font = Value End Set End Property I am showing the FONT in this way in the propertygrid . While showing the FONT Dialog then the Script Combobox should not be shown . Regards