What wrong with my code ??
Why it not go to true statement ?

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Your if statement has three conditions – you’re only showing two of them in the debugger.
I suspect that explains why you’re seeing something odd – but I don’t think your code is appropriate to start with. For one thing, you’re testing the same condition twice, which is pointless (did you mean one of them to be
lockScreenrather thanloginScreen?) – but more importantly, if one of thoseInvokeRequiredproperties returns false, you won’t be usingBeginInvokefor any of the forms… even ifInvokeRequiredreturned true for that form.I suggest you split this up into three separate blocks, each of which checks and acts on a single form.