Visual 2008, frejmwork 3.5
W klasie mam liste kontrolek z przekazanego widoku
List<Control> controls = userControl.Controls.OfType<Control>().Where(p => p.GetType() == typeof(System.Windows.Forms.TextBox) || p.GetType() == typeof(System.Windows.Forms.Button) || p.GetType() == typeof(System.Windows.Forms.ComboBox)).OrderBy(p => p.TabIndex).ToList();
I kręce się po tej liście, i w pewnym przypadku chciałbym zasymulować zdarzenie klik
for (int i = 0; i < controls.Count; i++)
{
if (controls[i].Focused && i + 1 <= controls.Count && controls[i].GetType() != typeof(System.Windows.Forms.Button))
{
Klik?
}
}
Czy ktoś ma pomysł jak to zrobić? Funkcji PerformClick() w tym frejmworku nie ma