HOW TO GET NAME IN TEXT CHANGED
HOW TO GET 'NAME' IN LISTBOX...FROM A FORM, WHERE I HAD INSERTED 'NAME.MAY I GET CODE TO WRITE IN TEXT CHANGED?
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 31, 2013, 12:25 AM EDT
Are you looking for autocomplete textbox? Please provide more details.
Are you looking for in ASP.NET or Windows Application?
Regards,
Iftikar
MANEESH AN110 reputationPosted Jul 31, 2013, 12:52 AM EDT
private void txtCustName_TextChanged(object sender, EventArgs e)
{
if (block == 0)
{
fnFillAccountNameListbox();
}
}
private void fnFillAccountNameListbox()
string strSelectQurry ="Select vAccName from tblAccountMaster where vAccName = vAccName like'"+txtCustName.Text+"' ";
if (txtCustName.Text.Trim().Length > 0)
{
objCfun.fnLoadListbox(lbxCustName, strSelectQurry);
lbxCustName.BringToFront();
if (lbxCustName.Items.Count > 0)
{
lbxCustName.Visible = true;
}
else
{
lbxCustName.Visible = false;
}
}
}
PLEASE GIVE CORRECT CODE..I DONT GET SELECTED VALUE
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 31, 2013, 1:03 AM EDT
Regards,
Iftikar
MANEESH AN110 reputationPosted Jul 31, 2013, 2:21 AM EDT
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 31, 2013, 2:23 AM EDT
Regards,
Iftikar