Threading
-
I have 2 dialog boxes. One for writing into a file and other for reading from the file. I am using 2 threads. One WriteThread and one ReadThread. When i run the application , i am not able to access the 2 dialogs synchronously.When the second dialog is displayed, i am not able to access the first dialog. Means after displaying the second dialog, i have to close it to get the first dialog. Anyone know the solution?
-
I have 2 dialog boxes. One for writing into a file and other for reading from the file. I am using 2 threads. One WriteThread and one ReadThread. When i run the application , i am not able to access the 2 dialogs synchronously.When the second dialog is displayed, i am not able to access the first dialog. Means after displaying the second dialog, i have to close it to get the first dialog. Anyone know the solution?
-
I have 2 dialog boxes. One for writing into a file and other for reading from the file. I am using 2 threads. One WriteThread and one ReadThread. When i run the application , i am not able to access the 2 dialogs synchronously.When the second dialog is displayed, i am not able to access the first dialog. Means after displaying the second dialog, i have to close it to get the first dialog. Anyone know the solution?
-
ratprita wrote:
Anyone know the solution?
You will probably need to use the ModeLess type of dialog. See the Dialog Boxes[^] reference on MSDN for details.
I tried this. I have made the second dialog modeless. My requirement was that when i click on the button on the 1st dialog, 2nd dialog will be activated. Now after making the 2nd dialog modeless, i am getting the 2nd dialog on each click on the 1st dialog's button . ie, more than one dialog(2nd) is activated. What is the problem?
-
I tried this. I have made the second dialog modeless. My requirement was that when i click on the button on the 1st dialog, 2nd dialog will be activated. Now after making the 2nd dialog modeless, i am getting the 2nd dialog on each click on the 1st dialog's button . ie, more than one dialog(2nd) is activated. What is the problem?
ratprita wrote:
What is the problem?
I think the problem may be in the design of your application. Dialogs should be used as short lived windows, to give information to the user, or to get parameters or other information from the user. If you need to have two dialogs active at the same time than you are really heading for trouble. I would take a look at your design and think through what you are trying to achieve.