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. Windows Forms
  4. Read winform control properties via reflection

Read winform control properties via reflection

Scheduled Pinned Locked Moved Windows Forms
csharpasp-netwinformstutorialquestion
2 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.
  • I Offline
    I Offline
    imak
    wrote on last edited by
    #1

    I have an assembly that contains several winforms which itself contains several controls. I want to dynamically get list of controls on all the web forms in assemly and then check certain properties on each control. Is it doable via refelction? If so can you please post some example code?

    D 1 Reply Last reply
    0
    • I imak

      I have an assembly that contains several winforms which itself contains several controls. I want to dynamically get list of controls on all the web forms in assemly and then check certain properties on each control. Is it doable via refelction? If so can you please post some example code?

      D Offline
      D Offline
      dan sh
      wrote on last edited by
      #2

      imak wrote:

      Is it doable via refelction?

      Yes it is. But it will be quite bad considering application performance.

      imak wrote:

      If so can you please post some example code?

      Well, you should try yourself first and then ask with specific details. That is what the guidelines say.

      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