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. create properites and assign to object at rum time

create properites and assign to object at rum time

Scheduled Pinned Locked Moved Visual Basic
5 Posts 5 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.
  • M Offline
    M Offline
    Member 4504891
    wrote on last edited by
    #1

    ya i need it .... and then wants to assign this object to propertygrid..

    Muhammad Ismail Khan SoftWare Developer CRM(Islamabad), Pakistan

    C L 2 Replies Last reply
    0
    • M Member 4504891

      ya i need it .... and then wants to assign this object to propertygrid..

      Muhammad Ismail Khan SoftWare Developer CRM(Islamabad), Pakistan

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      That's the most retard question ever. What properties ? Assign how ? I suspect you want to use reflection, but it's just not remotely clear to me why you'd have to - if you know the object, write code to set it's properties. Why would your code be given objects it knows nothing about ?

      Christian Graus Driven to the arms of OSX by Vista. "Iam doing the browsing center project in vb.net using c# coding" - this is why I don't answer questions much anymore. Oh, and Microsoft doesn't want me to.

      A 1 Reply Last reply
      0
      • C Christian Graus

        That's the most retard question ever. What properties ? Assign how ? I suspect you want to use reflection, but it's just not remotely clear to me why you'd have to - if you know the object, write code to set it's properties. Why would your code be given objects it knows nothing about ?

        Christian Graus Driven to the arms of OSX by Vista. "Iam doing the browsing center project in vb.net using c# coding" - this is why I don't answer questions much anymore. Oh, and Microsoft doesn't want me to.

        A Offline
        A Offline
        Ashfield
        wrote on last edited by
        #3

        Christian Graus wrote:

        That's the most retard question ever.

        I wouldn't go that far, but its got to be a good candidate :)

        Bob Ashfield Consultants Ltd

        1 Reply Last reply
        0
        • M Member 4504891

          ya i need it .... and then wants to assign this object to propertygrid..

          Muhammad Ismail Khan SoftWare Developer CRM(Islamabad), Pakistan

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Is it still rum-time? Hold the ice, please :) http://www.codeproject.com/script/Forums/View.aspx?fid=1646&select=2785076&fr=26#xx2785076xx Adding a property to a class, during runtime? You could generate the code for a class that inherits everything, compile it during runtime, and dynamically load the generated assembly. Though it may be technically possible, it's a bad idea. What are you trying to achieve?

          D 1 Reply Last reply
          0
          • L Lost User

            Is it still rum-time? Hold the ice, please :) http://www.codeproject.com/script/Forums/View.aspx?fid=1646&select=2785076&fr=26#xx2785076xx Adding a property to a class, during runtime? You could generate the code for a class that inherits everything, compile it during runtime, and dynamically load the generated assembly. Though it may be technically possible, it's a bad idea. What are you trying to achieve?

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

            eddyvluggen wrote:

            What are you trying to achieve?

            Yeah, I already said the same thing you did. This is his reply to the very same question. Since he refuses to get off the idea and say "I just need it!", I refuse to help and point out any other possible solutions that would be easier to implement and support.

            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