create properites and assign to object at rum time
-
ya i need it .... and then wants to assign this object to propertygrid..
Muhammad Ismail Khan SoftWare Developer CRM(Islamabad), Pakistan
-
ya i need it .... and then wants to assign this object to propertygrid..
Muhammad Ismail Khan SoftWare Developer CRM(Islamabad), Pakistan
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.
-
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.
-
ya i need it .... and then wants to assign this object to propertygrid..
Muhammad Ismail Khan SoftWare Developer CRM(Islamabad), Pakistan
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?
-
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?
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