如何确保填写所有文本框 [英] How to ensure all textbox is filled

查看:121
本文介绍了如何确保填写所有文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有几个文本框和datetimepicker填充给定的datagridview。我想知道是否可以确保用户表单上的所有文本框都填满了用户。我想要一个弹出消息,以显示其中一些文本框未填充。



我尝试过:



到目前为止,我试图对所有文本框进行编码,但我还是要向用户发送一条消息警告,以确保所有文本框都已填充。

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.

推荐答案

从SA到类似的问题有一个很好的解决方案检查所有文本框以确保不为空 [ ^ ]
There is an excellent solution from SA to a similar question Check all textbox to make sure not empty[^]


这篇关于如何确保填写所有文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆