private void updateticks(TextBox textbox, CheckBox tickbox)
{
if (textbox.Text.Length 0)
{
tickbox.Visible = true;
}
else
{
tickbox.Visible = false;
}
}
private void updateticks(ComboBox combox, CheckBox tickbox)
{
if (combox.Text.Length 0)
{
tickbox.Visible = true;
}
else
{
tickbox.Visible = false;
}
}
======
the above works and i can pass either text box control or combo box
control as the first argument when calling the function. But in code it
looks like two different functions, is there anyway i can write the
above to make it more obvious that it's one function with two
overloaded sets of arguments?