G
Guest
hi, im attempting to create an intellisense type form and have hit a
roadblock. I need the form to return (like the ShowDialog method returns the
dialog result) the value that was selected when the form closes. however, i
cannot just create a method that shadows ShowDialog and return it that way
because the form needs to close when the user clicks elsewhere on the screen,
or Alt-Tabs away from the window. i already have the code to close the window
when the user clicks or aalt-tabs away, but how can i have the form return a
result when this occurs? thanks
roadblock. I need the form to return (like the ShowDialog method returns the
dialog result) the value that was selected when the form closes. however, i
cannot just create a method that shadows ShowDialog and return it that way
because the form needs to close when the user clicks elsewhere on the screen,
or Alt-Tabs away from the window. i already have the code to close the window
when the user clicks or aalt-tabs away, but how can i have the form return a
result when this occurs? thanks