This will be a great help for me to carry my project further.

I need to check the text box value(form) with database. If it exist I try to show warning message and if not ask the user to enter the values.

I try to implement this code with Windows form,MVC format.

Can you provide sample code for this? Any suggestion ideas?

Thank You.

Welcome,
You can do (search from database) in many ways - executing queirues or LINQ to SQL or EntityDataModel. Please show your code to us so we can suggest or guide you on that issue.

commented: View: private void textBox1_KeyDown(object sender, KeyEvent Args e) if (e.KeyCode == Keys.Enter) { MessageBox.Show(controller.CheckAndGetBarcode()); } } Model: public class ProductModel { public string s; public st +0
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.