V
VJ
Private Sub GetData()
'Starting to fetch Master Data Set
dsData = GetDataSet()
'Show Cancel dialog form
frmCancel.show()
For each dtRow in dsData.Tables(0).Rows
if frmCancel.CancelClicked then 'CancelClicked is a
property in the frmCancel, it is set when cancel is clicked in the frmCancel
Exit For
end if
'Get Detail DataRow...
Next dtRow
'End Data Fetch
'Commint and Display data...
End Sub
The above code perfectly works when complied and run from VS Studio(Debug
mode)... , but when I run as a exectuable, I am not able to click on the
cancel button on the frmCancel. The whole screen is locked until the GetData
is finished...
What do I do?
VJ
'Starting to fetch Master Data Set
dsData = GetDataSet()
'Show Cancel dialog form
frmCancel.show()
For each dtRow in dsData.Tables(0).Rows
if frmCancel.CancelClicked then 'CancelClicked is a
property in the frmCancel, it is set when cancel is clicked in the frmCancel
Exit For
end if
'Get Detail DataRow...
Next dtRow
'End Data Fetch
'Commint and Display data...
End Sub
The above code perfectly works when complied and run from VS Studio(Debug
mode)... , but when I run as a exectuable, I am not able to click on the
cancel button on the frmCancel. The whole screen is locked until the GetData
is finished...
What do I do?
VJ