返回不适用于此代码 [英] Return don't work with this code
本文介绍了返回不适用于此代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
i使用此方法从登录表单移动到主页表单:
i use this method to move from login form to home form:
program:
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new MrSViews.HomeMain());
------------------------------------
home form :
load event :
CompanyConfig.CheckData frml = new CompanyConfig.CheckData();
frml.ShowDialog();
-----------------------------------------------
login :
if (loginCount != 0)
{
//true got to home
}
else
{
LBLerrorMSG.Text = strings.PASSWORD_IS_NOT_CORRECT;
LBLerrorMSG.ForeColor = ProjectColors.ErrorNormal;
return;
}
在显示主页表单之前,(return;)不适用于任何代码。和家庭表格一起出现。
我尝试了什么:
i搜索很多在谷歌,但我找不到任何答案..
before showing home form , (return;) don't work in any code. and home form appear.
What I have tried:
i searched many in google but i can't find any answers ..
推荐答案
你不能为谷歌答案。
跟踪此消息的唯一选项是一个单词:DEBUGGER
逐步执行代码,逐行执行line,并观察正在发生的事情并检查变量的值。
You're not going to be able to Google an answer for this.
Your ONLY option to track this down is a single word: DEBUGGER
Step through the execution of the code, line by line, and watch what's going on and the examine the values of variables.
这篇关于返回不适用于此代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文