h1.post-title { color:orange; font-family:verdana,Arial; font-weight:bold; padding-bottom:5px; text-shadow:#64665b 0px 1px 1px; font-size:32px; } -->

Pages

Clear ComboBox Text using C#.net

Clear ComboBox Text using C#.net

public static void ClearComBoBoxes(Control parent)
{
foreach (Control child in parent.Controls)
{
ComboBox comBox = child as ComboBox;
if (comBox == null)
ClearComBoBoxes(child);
else
comBox.SelectedIndex = -1;
}
}