Nevermind, I found the answer: just set the DialogResult:
http://pastebin.com/cURheMm8 Sheesh. Why is it simple things like this, you have to be verbose in code? :-) Regards, Benj On Oct 17, 8:55 pm, Benj Nunez <[email protected]> wrote: > Hi experts, > > I have a main form with a Search button. When the Search button is > clicked, it brings up a second > form containing a textbox, "find", "accept", and "cancel" buttons, and > lastly a datagridview. > Users simply key-in a text or string and press "find" which, if > record(s) are found, > it will show up on the datagridview. > > I wanted the user to select (or "accept" if you will) the item from > the datagridview by double-clicking it. > The selected item (e.g. ClientName) is passed back to the main form > which has a textbox. > > I noticed that the mouse double-click event seems to be not doing > this. But it does work when > you normally click an item from the datagridview and then press > "Accept". Code fragments > are available here: > > http://pastebin.com/6KRJFCWc > > Your comments/advice are welcome. > > Regards, > > Benj
