Hi. I have a form, called frmProduct a picture of which is not attaching here, due to some problem in website.
The first textbox on the form is called txtProdID, on its lost focus event I call a modal form frmPicker.showdialog(), from which i select a value which is then loaded into the textboxes of main frmProduct. right.
The problem which i face is that if I click on any other control (EXCEPT lostfocus event) i.e. button, txtbox or even if i try to close this form without inserting any data, so the modal form appears in everycase and i have to select the value, but then it gives an error that
a form that is already displayed modally cannot be displayed......
.
Please assist me that how to display the modal form only and only on lost focus event of txtProdID. Thanks.
The first textbox on the form is called txtProdID, on its lost focus event I call a modal form frmPicker.showdialog(), from which i select a value which is then loaded into the textboxes of main frmProduct. right.
The problem which i face is that if I click on any other control (EXCEPT lostfocus event) i.e. button, txtbox or even if i try to close this form without inserting any data, so the modal form appears in everycase and i have to select the value, but then it gives an error that
Quote:
a form that is already displayed modally cannot be displayed......
Please assist me that how to display the modal form only and only on lost focus event of txtProdID. Thanks.