this is for excel .
I have a form with 2 combobox and 1 textbox
combo 1 : user can select a column ; let say column A
combo 2 : user can select an operator ; let say = (equal)
textbox : user can enter value ; let say 2
so my code is like
but the problem i have is during run time i allow user to add more controls to the form
how do i handle this 'cause i have no idea how many will the user add to it, and the code should change when user add new control to it.
if possible , please give me sample code
much thanks.
I have a form with 2 combobox and 1 textbox
combo 1 : user can select a column ; let say column A
combo 2 : user can select an operator ; let say = (equal)
textbox : user can enter value ; let say 2
so my code is like
Code:
if (column A == tb.text)
{
execute code here
}
Code:
if ((column A == tb.text) && (column B == tb2.text)) [B]&& //may be more if user add[/B]
{
execute code here
}
if possible , please give me sample code
much thanks.
Comment