Click here to Skip to main content
15,905,508 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a table of categories: select Id, Name, Factor, sellbrise.buyprice.codebar from Product I have made the following store codebar = @ CODEBAR
Then I named the stored procedure Productcodebar


Then in the keydown event in TxTboxcode
Classe.clsProduct.Prodact_datatable.productCodebar(txtboxcode.text)
TxtName.texte=classe.clsProduct.Name;
TxtSellprive.text=classe.clsproduct.Sellprice.Tostring();

And when I run the program and write the code in txtboxcode, nothing happens, the values ​​remain empty in txtName and txtSellPrice

What I have tried:

I have a problem with codbar
Posted
Comments
Chris Copeland 14-May-21 4:15am    
You haven't given us enough code to investigate or work out what is wrong. I'm not even sure the code you have given us is correct because from first glance it looks like it wouldn't compile. If TxtName is a TextBox then it will not have a texte property. Please post the actual code you're using!
Richard MacCutchan 14-May-21 7:04am    
The Text property of a TextBox is spelled with a capital T.
SeanChupas 14-May-21 8:56am    
Not enough to know what you did wrong.
Sni.DelWoods 24-Sep-21 6:26am    
If this occurs in a WPF desktop an: Did you use a dispatcher (=> google) otherwise the textbox is updated in a new instance, not in the screen...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900