Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Hiding the Script Combobox in FONT Dialog

Hiding the Script Combobox in FONT Dialog

Scheduled Pinned Locked Moved Visual Basic
questiontools
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    VB 8 0
    wrote on last edited by
    #1

    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 ,

    L 1 Reply Last reply
    0
    • V VB 8 0

      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 ,

      L Offline
      L Offline
      LCARS x32
      wrote on last edited by
      #2

      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

      V 1 Reply Last reply
      0
      • L LCARS x32

        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

        V Offline
        V Offline
        VB 8 0
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups