c# - Using user controls having his name on a string -


i have problem, functionality i'm looking is:

i have grid , datagrid, according line select datagrid there introduce user control or other user controls different pictures i've made polylinesegments, bezier cuadratic ... introduce call name, build on string, have no way call correctly.

this , works putting full name:

d48.children.add(new tratspintados.end148()); 

but put string, tells me not find path in project, want find path inside string.

d48.children.add(new thestring()); 

any ideas?

if need instantiate class based on name (without real reference), need use reflection. maybe can lookup name class need, , use activator.createinstance call default constructor. hope want, question text quite confusing me.


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -