Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27554

VS 2005 How to handle showdialog() problem

$
0
0
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
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.

Viewing all articles
Browse latest Browse all 27554

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>