程序执行完主窗体的构造函数后却没有执行Load函数,窗体无显示。
program.cs
---------------------------
Main()
{
//如果系统未初始化...
Cursor.Current = Cursors.WaitCursor;
if (PDASystem.Instance.Initialized)
{
Application.Run(new Table_FM()); //该窗体为主窗体,执行完构造函数后未执行Load函数
}
else
Application.Run(SysConfig_FM.Instance);
}
catch (Exception ee)
{
MessageBox.Show("出现错误:" + ee.Message, "系统提示");
}
finally
{
try
{
SysData.Close();
PDACommunication.Instance.Disconnect();
}
catch
{ }
}
---------------------------------------------------------------------
//主窗体构造函数:
public Table_FM()
{
InitializeComponent();
}