I have question about the listbox. My listbox is binding to a database, and I use SelectedValueChanged to determine which my record I chose, I also get a couple button to interact with the sorting but the problem is whenever I change the database, like update new sql query, it loads the listbox again. And the time that listbox is loading, it triggers the SelectedValueChanged also. I try to use bool flag but I don't know how the flow of the program.
NguyenThai 0 Newbie Poster
Geekitygeek 480 Nearly a Posting Virtuoso
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.