0

I have a textbox bound to a data binding source using Microsoft access ,a label and a button.

What I want to do is when user type a word in textbox and click the button, label would show the binding value.

 private void button2_Click(object sender, EventArgs e)
        {         
            textBox1.Focus();

            if (textBox1.Text == "")
            {
                MessageBox.Show("Please input a word");
            }
            else if ( // Filter the word // )
            {
               // Result in the label //
            }
            else
            {
                MessageBox.Show("Word not found");
            }     
        }

I have seen a similar code but it is in different language The code I have seen :

If
  dictBindingSource.Filter = "(Convert(ID, 'Sysem.String') LIKE '" & textBox1.Text & "')" &
                "OR (Word LIKE '" & textBox1.Text & "' )"
Charlieface
  • 52,284
  • 6
  • 19
  • 43

0 Answers0