Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27349

Run certain event if Setting value = to...

$
0
0
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.

Viewing all articles
Browse latest Browse all 27349

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>