Is there any way that I can continue to the next function below (within the same function class) without closing the current m_frmLotEntry?
void ShowLotEntry()
{
DialogResult _dlgRet = DialogResult.None;
_dlgRet = m_frmLotEntry.ShowDialog(this);
// Next function here
}
Updates : I managed to proceed with the code by changing the codes to below.
void ShowLotEntry()
{
DialogResult _dlgRet = DialogResult.None;
BeginInvoke(new System.Action(() => m_frmLotEntry.ShowDialog()));
// Next function here
}
The programs now proceed with the next step. However, I have another issue which is the next next function requires some data from the users key-in in the previous windows form. Therefore, is there any possible way that I can do to stop halfway through the next process?
void ShowLotEntry()
{
DialogResult _dlgRet = DialogResult.None;
BeginInvoke(new System.Action(() => m_frmLotEntry.ShowDialog()));
// Proceed with this function here.
// Stop before the function below.
if (_dlgRet == DialogResult.OK)
{
// Some codes here
}
Thanks.