Click here to Skip to main content
15,887,363 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
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.
Posted
Comments
Peter Leow 13-Jun-14 5:52am    
What have you tried? Sound like homework.

1 solution

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

C#
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
}
 
Share this answer
 

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