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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Iftikar HussainPosted Jul 31, 2013, 6:23 AM
Regards,
Iftikar
MANEESH ANPosted Jul 31, 2013, 6:21 AM
Iftikar HussainPosted Jul 31, 2013, 5:03 AM
Regards,
Iftikar
MANEESH ANPosted Jul 31, 2013, 4:52 AM
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 HussainPosted Jul 31, 2013, 4:25 AM
Are you looking for autocomplete textbox? Please provide more details.
Are you looking for in ASP.NET or Windows Application?
Regards,
Iftikar