D
dominique
Hi,
Is it possible (in vb.net with WinForms) to loop throw controls inside a
container (form or panel) sorting the controls on a property (.tabindex
for example) ?
My problem : on several forms (or panels), i have many controls
(inherited controls from base controls : MyTextbox, MyCombobox ..). I
add a new property on these controls : .BeginningGroup (boolean : yes or
no).
The focus is on a control in the form. I want with the key PageDown to
move the focus on the first controls following having the
property.Beginning (=yes), and with the key Page Up on the first
previous.
For that, i must loop on controls sorting by .tabindex.
i think it is :
dim ctl as control
for each ctl in MyForm.controls
.. but with a sort by Tabindex and a start value
with an arraylist or collection ??
Can you help me ?
Thanks for advance
Dominique
Is it possible (in vb.net with WinForms) to loop throw controls inside a
container (form or panel) sorting the controls on a property (.tabindex
for example) ?
My problem : on several forms (or panels), i have many controls
(inherited controls from base controls : MyTextbox, MyCombobox ..). I
add a new property on these controls : .BeginningGroup (boolean : yes or
no).
The focus is on a control in the form. I want with the key PageDown to
move the focus on the first controls following having the
property.Beginning (=yes), and with the key Page Up on the first
previous.
For that, i must loop on controls sorting by .tabindex.
i think it is :
dim ctl as control
for each ctl in MyForm.controls
.. but with a sort by Tabindex and a start value
with an arraylist or collection ??
Can you help me ?
Thanks for advance
Dominique