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. C#
  4. Properties Window in windows programming~ [modified]

Properties Window in windows programming~ [modified]

Scheduled Pinned Locked Moved C#
questioncsharp
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.
  • S Offline
    S Offline
    SeeBees
    wrote on last edited by
    #1

    Hello, everyone. I was working on a windows program with C#, and wanted to associate my PictureBox component with a ContextMenu. I searched into the Properties Windows, only to find a ContextMenuStrip property there instead of a ContextMenu. Then I was unable to set the property using the Properties Window which would otherwise save me a lot of troubles. So here comes my question. Since not all the properties of a component are displayed on the Properies Window, can I manually put the ContextMenu or some other property onto the Properties window? Or there's just no way for me to customize the Properties Window like that? :-O -- modified at 6:25 Saturday 20th October, 2007

    A 1 Reply Last reply
    0
    • S SeeBees

      Hello, everyone. I was working on a windows program with C#, and wanted to associate my PictureBox component with a ContextMenu. I searched into the Properties Windows, only to find a ContextMenuStrip property there instead of a ContextMenu. Then I was unable to set the property using the Properties Window which would otherwise save me a lot of troubles. So here comes my question. Since not all the properties of a component are displayed on the Properies Window, can I manually put the ContextMenu or some other property onto the Properties window? Or there's just no way for me to customize the Properties Window like that? :-O -- modified at 6:25 Saturday 20th October, 2007

      A Offline
      A Offline
      Anthony Mushrow
      wrote on last edited by
      #2

      ContextMenuStrip, is just a context menu, 'they' just changed the name a little. Make yourself a ContextMenu(Strip) then set your Picture boxes ContextMenu(Strip) to it. And in a situation where a property is not listed in the designer, and you KNOW its there, you can just add the line of code yourself, like: this.Thing.Attribute = Whatever; I don't think you can just add stuff tou the properties window like that. You'd have to inherit the base class, and add in the support for the designer.

      My current favourite word is: Waffle Cheese is still good though.

      S 1 Reply Last reply
      0
      • A Anthony Mushrow

        ContextMenuStrip, is just a context menu, 'they' just changed the name a little. Make yourself a ContextMenu(Strip) then set your Picture boxes ContextMenu(Strip) to it. And in a situation where a property is not listed in the designer, and you KNOW its there, you can just add the line of code yourself, like: this.Thing.Attribute = Whatever; I don't think you can just add stuff tou the properties window like that. You'd have to inherit the base class, and add in the support for the designer.

        My current favourite word is: Waffle Cheese is still good though.

        S Offline
        S Offline
        SeeBees
        wrote on last edited by
        #3

        Thanks for your advice!:-O

        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