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. Finding the PropertyGrid Delete Key Event in VB.NET

Finding the PropertyGrid Delete Key Event in VB.NET

Scheduled Pinned Locked Moved Visual Basic
csharpcsstutorialquestion
4 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 Property grid in my application .Lets consider [None] has to appear if i set the property to empty. Consider VB6.0 application to understand clearly . Lets consider the Image property of Picture box. I set the image from My Documents. THen at the Image property i pressed the DEL key from keyboard .Directly it has to show the [None] as property text bcoz there is no image for the Picture box. How to achieve this Functionality in Propertygrid ?? Regards,

    D 1 Reply Last reply
    0
    • V VB 8 0

      Hi CP , I am using the Property grid in my application .Lets consider [None] has to appear if i set the property to empty. Consider VB6.0 application to understand clearly . Lets consider the Image property of Picture box. I set the image from My Documents. THen at the Image property i pressed the DEL key from keyboard .Directly it has to show the [None] as property text bcoz there is no image for the Picture box. How to achieve this Functionality in Propertygrid ?? Regards,

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      If I understand what you want correctly, you don't handle the Key events of the propertygrid, but create a custom UITypeEditor for your property and handle the keypress in that.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007, 2008

      V 1 Reply Last reply
      0
      • D Dave Kreskowiak

        If I understand what you want correctly, you don't handle the Key events of the propertygrid, but create a custom UITypeEditor for your property and handle the keypress in that.

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007, 2008

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

        Hi Dave, Thanks for reply. May i know how can i implement in custom UITypeEditor ??? Regards

        D 1 Reply Last reply
        0
        • V VB 8 0

          Hi Dave, Thanks for reply. May i know how can i implement in custom UITypeEditor ??? Regards

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          Google for "UITypeEditor VB.NET" and you'll find examples. There's just too much information to stick in a forum post.

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007, 2008

          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