m0stwanted143
Eternal Poster
Nahihirapan ako mag code sa searching sa listbox gumagana lang sya kapag nag add ka ng items sa mismong forms, pero kapag sa nag add ka ng items sa files or "Showdialog" di sya ma search bakit kaya?? Need kaya database ?
Maybe query problem.
post your code. Let's see what's the problem
Sa Mismong Properties ng list lang yung gumagana pag nakaka search. kaya binura ko nalng .. need ko po ung pag nag lagay na po ako ng files tapos ma sesearch ko po pag ni run ko na po.. Thanks and Advance..
private void textBoxSeach_TextChanged(object sender, EventArgs e)Post your search code
private void textBoxSeach_TextChanged(object sender, EventArgs e)
{
if (string.IsNullOrEmpty(textBoxSearch.Text) == false)
{
foreach (string str in listcollection)
{
if (str.StartsWith(textBoxSearch.Text))
{
listBox1.Items.Add(str);
}
}
}
else if (textBoxSearch.Text == "")
{
listBox1.Items.Clear();
foreach (string str in listcollection)
{
listBox1.Items.Add(str);
}
}
}
oo yun nga.. ts.. sana matulungan mo ko..Teka, you want, kapag nagsearch ka yung result lang ang matitira? and then clear yuing ibang items?
Tapos pag empty na yung search box, marerestore yung items?
yan nga nga ts. pero di gumagana yan sakin kasi naka output na agad yan.. yung akin i input palang gamit openFileDialog.ShowDialog.. kaya di nagana sakin
Ts. try mo po ung may FileDialog add files sa list galing sa Computer file mo any type file extensions. then try nyu po yung ginawa nyu pong search bar.. ayun po kasi ung di ko magawa ih. Thanks pom0stwanted143 ganito? Sorry nifix ko pa
Ayusin ko lang source code then post ko dito
View attachment 997048
Ts. try mo po ung may FileDialog add files sa list galing sa Computer file mo any type file extensions. then try nyu po yung ginawa nyu pong search bar.. ayun po kasi ung di ko magawa ih. Thanks po
tutorial ts.. galing mo sa coding..
Wait post ko codetutorial ts.. galing mo sa coding..