473,406 Members | 2,843 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,406 software developers and data experts.

Thread Part 3

Hello and Thanks again,

Maybe I am not explaining what I am looking for good enough and maybe I
should not be using muli-threads at all. What I am after is the following:

Form1 instantiates Form2 using SHOW, which is always on top. Form2 is a
clipboard, where the user can copy and paste information into it and into
Form3 which will filled with Textboxes.

In Form2 (The clipboard) there is a button that says "Send Data To Form3".

Background Info:

Form1 has a button that say's "Add New Data". When the "Add New Data"
button is clicked, From3 is displayed using SHOWDIALOG. Here the user can
add new data to a database.

When Form2's button is clicked ("Send Data To Form3"), I need Form3 to be
displayed using SHOWDIALOG so that only one instance of the form is being
used at a time. I still need Form2 (The clipboard) to be on top and still
usable (Able to be moved and accessed)

Thanks,

Chuck

Nov 21 '05 #1
3 945
Instead of threading could you just show as a normal top most form? When
the selection is made on frm1PollDatabase raise an event on the main form.
You could then create frm1Modify on the main form, fill it with the
properties needed from frm1PollDatabase, destroy or continue with
frm1PollDatabase and then show frm1Modify as a dialogue from the main form.
This seems to do the trick without all the unecessary threading.

Is there any reason why you have to thread?

Robby

"Charles A. Lackman" <Ch*****@CreateItSoftware.net> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hello and Thanks again,

Maybe I am not explaining what I am looking for good enough and maybe I
should not be using muli-threads at all. What I am after is the
following:

Form1 instantiates Form2 using SHOW, which is always on top. Form2 is a
clipboard, where the user can copy and paste information into it and into
Form3 which will filled with Textboxes.

In Form2 (The clipboard) there is a button that says "Send Data To Form3".

Background Info:

Form1 has a button that say's "Add New Data". When the "Add New Data"
button is clicked, From3 is displayed using SHOWDIALOG. Here the user can
add new data to a database.

When Form2's button is clicked ("Send Data To Form3"), I need Form3 to be
displayed using SHOWDIALOG so that only one instance of the form is being
used at a time. I still need Form2 (The clipboard) to be on top and still
usable (Able to be moved and accessed)

Thanks,

Chuck

Nov 21 '05 #2
Hello,

Yes, this is how I originally programed it and it does not work the way I
need it two.
I raise the event in the Main form, where at the AddressOf the
frm1Modify.ShowDialog is shown. This causes frm1PollDatabase to become
unusable (because of the ShowDialog). The only way I have been able to get
the right effect is to SHOW the form. But then I have to recreate it
everytime I need to use it, because when it is closed it is destroyed. I
could capture the Closing event can cause the form to hide instead, which
might be what I have to do, if I can't find a work around.

We are getting closer, I think.

Thanks,

Chuck
"Robby" <ed****@not.my.email.com> wrote in message
news:OM**************@TK2MSFTNGP12.phx.gbl...
Instead of threading could you just show as a normal top most form? When
the selection is made on frm1PollDatabase raise an event on the main form.
You could then create frm1Modify on the main form, fill it with the
properties needed from frm1PollDatabase, destroy or continue with
frm1PollDatabase and then show frm1Modify as a dialogue from the main
form. This seems to do the trick without all the unecessary threading.

Is there any reason why you have to thread?

Robby

"Charles A. Lackman" <Ch*****@CreateItSoftware.net> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hello and Thanks again,

Maybe I am not explaining what I am looking for good enough and maybe I
should not be using muli-threads at all. What I am after is the
following:

Form1 instantiates Form2 using SHOW, which is always on top. Form2 is a
clipboard, where the user can copy and paste information into it and into
Form3 which will filled with Textboxes.

In Form2 (The clipboard) there is a button that says "Send Data To
Form3".

Background Info:

Form1 has a button that say's "Add New Data". When the "Add New Data"
button is clicked, From3 is displayed using SHOWDIALOG. Here the user
can add new data to a database.

When Form2's button is clicked ("Send Data To Form3"), I need Form3 to be
displayed using SHOWDIALOG so that only one instance of the form is being
used at a time. I still need Form2 (The clipboard) to be on top and
still usable (Able to be moved and accessed)

Thanks,

Chuck


Nov 21 '05 #3
Charles,

Will you be so kind to stay in the original threads, than questions can be
followed up, now you make that almost impossible and have others every time
to start new, what cost in my opinion too much time searching for your
original questions and answers on that.

Cor

"Charles A. Lackman" <Ch*****@CreateItSoftware.net>

...
Hello,

Yes, this is how I originally programed it and it does not work the way I
need it two.
I raise the event in the Main form, where at the AddressOf the
frm1Modify.ShowDialog is shown. This causes frm1PollDatabase to become
unusable (because of the ShowDialog). The only way I have been able to
get the right effect is to SHOW the form. But then I have to recreate it
everytime I need to use it, because when it is closed it is destroyed. I
could capture the Closing event can cause the form to hide instead, which
might be what I have to do, if I can't find a work around.

We are getting closer, I think.

Thanks,

Chuck
"Robby" <ed****@not.my.email.com> wrote in message
news:OM**************@TK2MSFTNGP12.phx.gbl...
Instead of threading could you just show as a normal top most form?
When the selection is made on frm1PollDatabase raise an event on the main
form. You could then create frm1Modify on the main form, fill it with the
properties needed from frm1PollDatabase, destroy or continue with
frm1PollDatabase and then show frm1Modify as a dialogue from the main
form. This seems to do the trick without all the unecessary threading.

Is there any reason why you have to thread?

Robby

"Charles A. Lackman" <Ch*****@CreateItSoftware.net> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hello and Thanks again,

Maybe I am not explaining what I am looking for good enough and maybe I
should not be using muli-threads at all. What I am after is the
following:

Form1 instantiates Form2 using SHOW, which is always on top. Form2 is a
clipboard, where the user can copy and paste information into it and
into Form3 which will filled with Textboxes.

In Form2 (The clipboard) there is a button that says "Send Data To
Form3".

Background Info:

Form1 has a button that say's "Add New Data". When the "Add New Data"
button is clicked, From3 is displayed using SHOWDIALOG. Here the user
can add new data to a database.

When Form2's button is clicked ("Send Data To Form3"), I need Form3 to
be displayed using SHOWDIALOG so that only one instance of the form is
being used at a time. I still need Form2 (The clipboard) to be on top
and still usable (Able to be moved and accessed)

Thanks,

Chuck



Nov 21 '05 #4

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

Similar topics

4
by: Gilles Leblanc | last post by:
Hi I have started a small project with PyOpenGL. I am wondering what are the options for a GUI. So far I checked PyUI but it has some problems with 3d rendering outside the Windows platform. I...
18
by: Urs Vogel | last post by:
Hi I wrote an application server (a remoting sinlgeton), where processes must be stopped in very rare cases, done thru a Thread.Abort(). Occasionally, and only after a Thread.Abort(), this...
7
by: Charles Law | last post by:
My first thought was to call WorkerThread.Suspend but the help cautions against this (for good reason) because the caller has no control over where the thread actually stops, and it might have...
7
by: Chad Zalkin | last post by:
We are evaluating some old code that was written as part of our math library. This code uses some optimizations that I'm not sure are necessary or safe, but is a source of debate between my...
6
by: Joe HM | last post by:
Hello - I have a function that calls Thread.Abort() to stop a thread in a _Closed() Method of a GUI. The thread contains a blocking call on a TCP socket and that is the easiest way to stop...
6
by: seb | last post by:
Hi, I am using pygtk for the first times. I am wondering what would be the best "pattern" to interface pygtk with a thread. The thread is collecting informations (over the network for...
22
by: Morpheus | last post by:
Hi, I have been coding in Windows for many years so have a mindset to it, so forgive any stupid questions. Is it possible to create a multithread application in C++ that is portable...
12
by: Zytan | last post by:
Can I break the debugger into a worker thread? Right now, my app is freezing, and when I press pause, it stops on: Application.Run(new MyForm()); I don't know what that means. I know the...
19
by: Hapa | last post by:
Does only reading (never writing) of a variable need thread synchronisation? Thanks for help? PS. Anybody knows a Visual C++ news group?
9
by: Pubs | last post by:
Hi all, I want to call a function with some intial parameters with in a thread. At the end of the function execution it should return a value to the caller. Caller is outside the thread. ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.