SHARE
c# resolve “Input string was not in a correct format.” error?

c# resolve “Input string was not in a correct format.” error?

In this video i’m gonna show you,
how to resolve “Input string was not in a correct format.” error?

i have made a software and faced this error and than i found the following
solution.
As for your error, string was not in the correct format,
you will get this with any unsafe code whenever the input
string cannot be converted to an int. Surround it with a try catch or
use Int32.TryParse:
FOR ANY question post comment or email me:
khaliqdadmohmand@gmail.com

Don’t forget to subscribe

c#
source

4 COMMENTS

LEAVE A REPLY

Please enter your comment!
Please enter your name here