I have a dilemma which I'm sure most programmers could solve in their
sleep.
I have two Windows forms, a main window and a smaller window intended
to grab info from the user and send it back to the main window. The
main window's class instantiates the second window's class.
Getting data to the second window and class is no problem: I simply
called a method in the second class instance. However, the method in
the first class that shows the second class/window to the user
obviously terminates long before it can receive anything back from it.
I would like to be able to suspend the first window (that is, so that
the user must close the second winodw to do anything to the first
window) while the second window is open.
I have tried using the ref and out keywords on the parameters in the
second class method, but the method ends with the Show() call and
terminates, which means I cannot use the refs or outs to set the data
when the user clicks OK on the second window.
I know most programs do this simple task, and that it's probably right
under my nose, but I would appreciate any help. Thanks.
S. Knight
se**************@yahoo.com
--