如何在Windows窗体中创建确认表单 [英] How to create a acknowledgement form in Windows forms

查看:80
本文介绍了如何在Windows窗体中创建确认表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个表格,如果我点击一个按钮,就会出现一个新表格并提示输入一个新表格中的验证号码。



如果输入的号码并且给定的数字匹配则应该返回布尔值。



怎么做。

I have a form in which if I click a button a new form appears and prompts to enter a verification number in that new form.

If the entered number and the given number matches then boolean true value should be returned.

How to do so.

推荐答案

这并不困难。请使用下面的代码。



It's not difficult. Use below code, please.

string input = Microsoft.VisualBasic.Interaction.InputBox("Title", "Prompt", "Default", 0, 0);
if (input == verificode)
{
// entered number matches with verification number
// do something
}
else
{
// not match
}


这篇关于如何在Windows窗体中创建确认表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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