473,405 Members | 2,261 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

MDI-Forms with thread

Hello,

I have a application which could create 1 to 5 mdi-child-forms.
Each childform should have it`s own thread - like a chat-application.
How can I do this?

Bye

Mike
Nov 20 '05 #1
7 1400
"MIchael Ullrich" <mi******@gmx.de> schrieb

I have a application which could create 1 to 5 mdi-child-forms.
Each childform should have it`s own thread - like a
chat-application. How can I do this?


It can not be done because windows that have a child<->parent relation must
run in the same thread. (AFAIR)
--
Armin

http://learn.to/quote
http://www.plig.net/nnq/nquote.html

Nov 20 '05 #2
Hi Mike,

Threading may or may not be the best solution. One thread per Form may or
may not be the best solution. It might be useful to tell us more about what
these Forms are going to do. To use your example - chats - there might be
several going on in parallel, but they might be implemented in a single
threaded manner, or they might share a thread or two for part of their work.

Regards,
Fergus
Nov 20 '05 #3
Cor
Hi Michael,

As addition to Armin,

Why should you do that, is the one who is chatting typing text with 5
keyboards in one time (and even than there is no reason for that because the
delay is to high)

I am curious about the reason?

Cor
Nov 20 '05 #4
Although each child window must run on the parent thread, there is nothing
to stop you creating a component which is added to each window that
communicates with its own worker thread.
"MIchael Ullrich" <mi******@gmx.de> wrote in message
news:52*************************@posting.google.co m...
Hello,

I have a application which could create 1 to 5 mdi-child-forms.
Each childform should have it`s own thread - like a chat-application.
How can I do this?

Bye

Mike

Nov 20 '05 #5
Hi,

actually in each child-form a self-written script interpreter is
running.
The interpreter starts with creation of the child-form.
But when I open three or more child-forms only the last one ist working,
and the other ones are pauusing until the task of the last one is
finished.
But I need all the forms run at the same time.

Bye

Mike

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 20 '05 #6


Hi,

actually in each child-form runs a self-written script-interpreter which
works throuh a script (takes aprox. 20-60sec.)
In the meantime I want to start other child-forms which run the same
interpreter at the same time.
Right now only the last form is running and the other ones are paused.

Bye

Mike

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 20 '05 #7


Hi,

actually I have a childform, which runs a self-written script
interpreter (1 script runs aprox. 1 min).
I want to create more child-forms and I want to have the interpreters
run parallel.
Right now only the interpreter of the form created last is running until
it is finished and then the other ones are continuing.

How can I make parallel working child-forms

bye

Mike

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 20 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: LenS | last post by:
Hate to ask this dum question (since I've been hiding under a rock). But if the MDI UI model is/was depreciated. What is the new UI model. Would love some links that explain in gerneral and...
5
by: Iain | last post by:
I would like to prevent the user from closing MDI child windows. However, I would like them to be able to minimize and maximize them. Setting the Control Box to false removes the minimize and...
2
by: SpotNet | last post by:
Hi NewsGroup, Currently constructing a MDI application with tree view functionality. That is to say my application will look something like Windows Explorer with the ability to view data and...
1
by: Sylvain | last post by:
Hi, I am developping a Visual C++ application. In my application, I created a Mdi parent form with a main menu. I also created a "menuItem" click to display a Mdi child form. I want in this case...
9
by: Jason | last post by:
I have one MDI Child form for a MDI Parent form. I want the MDI Child form to not have a control box for minimizing and and closing the form. I set the control box property of the child to...
2
by: QT | last post by:
Dear Sirs, I made a MDI Parent form and two MDI child form. I can open MDI child form from MDI parent form with; Dim UserChangePassword_Form As New UserChangePassword 'Set the Parent Form of...
1
by: Marius Groenendijk | last post by:
Dear Group, I have a MDI with children which may be editing data. If a MDI child closes its Closing handler asks a question 'exit w/out saving?'. On closing the MDI its pops a question 'Exit...
6
by: Bernie Yaeger | last post by:
A form may not be both a child window and an mdi parent, but why not? I can think of many instances where such would be valuable. Indeed, the basic structure of menus and submenus is the perfect...
1
by: ferguslogic | last post by:
Hello everyone, I have a C# winforms application which is designed as a mdi application. I am having a focus problem with it that I cannot seem to solve. If I open a mdi child and it is the...
2
by: Tony | last post by:
Hello! I read a book and it says something that I don' fully understand. "Another feature of MDI applications is that if a window is open and that window contains a menu, that menu should be...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.