In the below snippet of code how can I write the line, else if
(c.ContainsFocu s) in vb? Thanks.
foreach (Control c in controls)
{
if (c.Focused)
{
// Return the focused control
return c;
}
else if (c.ContainsFocu s)
{
// If the focus is contained inside a control's children
// return the child
return getFocused(c.Co ntrols);
}
}
(c.ContainsFocu s) in vb? Thanks.
foreach (Control c in controls)
{
if (c.Focused)
{
// Return the focused control
return c;
}
else if (c.ContainsFocu s)
{
// If the focus is contained inside a control's children
// return the child
return getFocused(c.Co ntrols);
}
}
Comment