Alright, this is probably going to be a complete newbie question, but I need to figure this out. I have a program that requires some data entry, the data entry is more complicated than a standard dialog box will allow. I've got a program working that will accept the input data, and spit out the output data. The problem is, I need to work that program, form and all, into another program.
Basically, I need the main program to bring up the other program, as well as send it a variable that will accept the new data. The other program needs to be able to see the data being sent, complete it's calculations, and put the new data into the variable. It also needs to pause the main program's window, so that the main program doesn't keep going before the data is added. And, of course that means the new window needs to get the focus as soon as it appears.
*By "program" I'm refering to forms. I've already added both forms to one project, both "programs" are merged together. I just need to know how to get them to work properly with each other.
This is all being done in Visual Studio 2003. I'd lke to see the examples in code, if possible, as I learn best looking at source code and not trying to read tech docs. (Code doesn't have to be exact, it just needs to do what I need, and I can modify it to fit.)
Basically, I need the main program to bring up the other program, as well as send it a variable that will accept the new data. The other program needs to be able to see the data being sent, complete it's calculations, and put the new data into the variable. It also needs to pause the main program's window, so that the main program doesn't keep going before the data is added. And, of course that means the new window needs to get the focus as soon as it appears.
*By "program" I'm refering to forms. I've already added both forms to one project, both "programs" are merged together. I just need to know how to get them to work properly with each other.
This is all being done in Visual Studio 2003. I'd lke to see the examples in code, if possible, as I learn best looking at source code and not trying to read tech docs. (Code doesn't have to be exact, it just needs to do what I need, and I can modify it to fit.)