How to get Next Control In Control Collection

Hi Guys,
Can you solve my one problem...

See i am gettin the list of controls in another form in controls collection in that mycontrols[] then i m loopin through each control..and the controls that i gettin are on the other form then the one in which i m writing the codes... so now i have a requirement where i need to check which is the next control in that loop...

but when i use GetNextControl(ctr,true) this gives me the next control in the frm which i workin i dnt knw why...and when i do this

ctr.GetNextControl(ctr,true) then it gives me a null reference exception...

Can u tell me a way by which i can access the next control in that loop...my codin is this way

Code: ( text )

Control[] mycontrols = new Control[frm.Controls.Count];
frm.Controls.CopyTo(mycontrols, 0);
Array.Sort(mycontrols, new ControlComparer());
foreach (System.Windows.Forms.Control ctr in mycontrols)
{
if (ctr.GetNextControl(ctr,true).GetType.FullName.ToString() != "System.Windows.Forms.RadioButton")
{
SaveRadio(radio, ctr, filename1);
}

}

for further clarification please reply
[1259 byte] By [huzefa.juventus] at [2007-11-20 11:49:57]