Click here to Skip to main content
15,887,267 members
Please Sign up or sign in to vote.
1.03/5 (5 votes)
See more:
I have a couple of textboxes and datetimepicker that populates a given datagridview. I want to know if it will be possible to ensure that all textboxes on the user-form are filled bu the user. I want a pop-up message to show when some of these textboxes are not filled.

What I have tried:

I have so far tried to code all the textboxes but i am yet to give it a message alert to users to ensure that all textboxes are filled.
Posted
Updated 9-Feb-17 4:51am
Comments
[no name] 9-Feb-17 8:11am    
Yes it is possible.
Richard MacCutchan 9-Feb-17 8:50am    
You can only check this when the user takes some action to indicate that he/she thinks all information has been provided. For example pressing a button. At that point you just check each control to see if it contains what you want.
Kobby Adom 9-Feb-17 9:09am    
Thanks Richard. That's exactly what i want. Any idea about the codes that initiates these controls.
ZurdoDev 9-Feb-17 10:37am    
Reply to the user so that they are notified.
Richard MacCutchan 9-Feb-17 12:59pm    
Sorry, I don't understand the question. Please edit your question and explain exactly what your code is trying to do.

1 solution

There is an excellent solution from SA to a similar question Check all textbox to make sure not empty[^]
 
Share this answer
 
v2
Comments
Karthik_Mahalingam 9-Feb-17 22:37pm    
Hi Peter
I am sorry to discuss off topic, SA missing his action for last 6+ months, do you have any info on him?
Peter Leow 9-Feb-17 22:47pm    
No idea but missing him a lot and the opportunity to learn from him. He may be engaged in some big project. Wish him well. Hope to hear from him soon.
Karthik_Mahalingam 9-Feb-17 22:48pm    
Yeah!!! :(

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