How to ? SearchBox for LocalDatabase


  • Hey guys.

    I have a dictionary app and I have the words database connected to my application. and I Now I wanna make a simple searchbox (using a textBox and a Button ) I searched for it almost everywhere on web but didn't find any good article .

    So do you know any source or Guide for it ?

    By the way, I tried one of the ways But when I Tap the search button nothin happens  :

            private void txtSearch_SelectionChanged(objectsender, RoutedEventArgs e)
                words35Context dc = new words35Context("Data Source=isostore:/words35.sdf");
                var words = from w in dc.Wordst
                            where w.Foriw.StartsWith(txtSearch.Text)
                            select w;
    *Note* I connected my database through the sql ce compact toolbox (auto generated Code )

    Thanks in advance.

    Thursday, April 24, 2014 12:34 AM


All replies