Torna al Thread

[CODE] List<IMioControllo> lista = Assembly.GetExecutingAssembly().GetTypes().Where(t => t.GetInterfaces().Contains(typeof(IMioControllo))) .Select(p => Activator.CreateInstance(p)) .OfType<IMioControllo>() .ToList(); //questo per aggiungerla ad un panel ad esempio lista[0].Testo = "ciao"; this.panel1.Controls.Add((Control)lista[0]); [/CODE]
Copyright © dotNetHell.it 2002-2025
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5