I have a windowsForm with a search form. You can search on a DB as you type or you can search when you click SEARCH BUTTON.
The user can select which way he wants to use. So I created a Search Options window, where you select the way you want the search to be (as you type or Search button).
If it is As you type:
- The SQL string should be run on the event Change of a textbox.
If it is Search Button:
- The SQL string should be run on the event Clic of the button.
The selected option is saved on a Setting variable called SearchType. It is an integer: if 0 then Search as you type, if 1 then search Button.
Now I need the windowsForm to know what type of search should be doing. How do I accomplish this?
Thanks.
The user can select which way he wants to use. So I created a Search Options window, where you select the way you want the search to be (as you type or Search button).
If it is As you type:
- The SQL string should be run on the event Change of a textbox.
If it is Search Button:
- The SQL string should be run on the event Clic of the button.
The selected option is saved on a Setting variable called SearchType. It is an integer: if 0 then Search as you type, if 1 then search Button.
Now I need the windowsForm to know what type of search should be doing. How do I accomplish this?
Thanks.