0

I have this code on my computer and it wont work, the window pops up but the button doesnt initiate anything

https://code.sololearn.com/c7RRMwl0leLl/?ref=app

12th Sep 2017, 11:37 PM
Jeremy Watkins
Jeremy Watkins - avatar
2 Respostas
+ 2
If you're doing this on Visual Studio you should be able to see why compile failure occurred, that is if your compiler failed, not when it compiles with output is not as expected, tell me error message?, in the code you branch to show "yes" or "no", what condition did you expect that should outputs "yes"?. Because as I see it, the "yes" will never come until you type 12345 (twelve thousand three hundred and forty five) letters/characters into the password input. You are comparing Password.TextLength with 12345, that would be a very long text to input as a password. If you wish to check whether or not the user type in a "12345" string then you should've done this: (Edited) if (Password.Text.Equals("12345")) Then if you type 12345 into the password input, it will write "yes" on the console. Hth, cmiiw
13th Sep 2017, 7:57 AM
Ipang