473,386 Members | 1,654 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,386 software developers and data experts.

Inserting "triggers" into a vb.net app

Rob
Hi,

Given I have a button on a Windows form in a VB.net app.... I would like to
know the best way to accomplish the following...

Upon clicking the button I would like to launch another VB.net application,
furthermore, I would like to send parameter data to this app, as well as
receive data from the launched app (back to the original app) upon
completion.

I would also like to ensure that the source app (the one where the new app
is launched from) is not enabled during the time frame that the "launched
app" is in use.

Thanks !
Jun 27 '08 #1
2 905
On Jun 5, 8:20*am, "Rob" <ro...@yahoo.comwrote:
Hi,

Given I have a button on a Windows form in a VB.net app.... I would like to
know the best way to accomplish the following...

Upon clicking the button I would like to launch another VB.net application,
furthermore, I would like to send parameter data to this app, as well as
receive data from the launched app (back to the original app) upon
completion.

I would also like to ensure that the source app (the one where the new app
is launched from) *is not enabled during the time frame that the "launched
app" is in use.

Thanks !
Rob

You second application is still an assembly. Therefore you could add
it into your main VB project, set a reference to it, and instantiate
objects (like Forms) in it. You can pass paarmeters either by creating
properties of the form object to receive them or, even better, by
adding these parameters to the constructor (New method) of the forms
objects you need to instantiate. When your process completes the
return values can be placed in an object that is read by the main
application. Since this is being down sychronously, the process of
passing and receiving data is much simpler.

Access to the main app can be prevented by setting the main forms
Enable property to False.

Thanks

Carl
Jun 27 '08 #2
Rob
Thanks for responding Carl...

To add a little more complexity...

What if the 2 apps were designed that they could be run separately... (i.e.,
the second app could either have data passed from the first app, or the user
could enter data into it directly if it was run as standalone).... might the
command line be the way to go... I think I know how to get data to the
second app from the first using the command line, but not the return
data....
"SetonSoftware" <se************@verizon.netwrote in message
news:83**********************************@j22g2000 hsf.googlegroups.com...
On Jun 5, 8:20 am, "Rob" <ro...@yahoo.comwrote:
Hi,

Given I have a button on a Windows form in a VB.net app.... I would like
to
know the best way to accomplish the following...

Upon clicking the button I would like to launch another VB.net
application,
furthermore, I would like to send parameter data to this app, as well as
receive data from the launched app (back to the original app) upon
completion.

I would also like to ensure that the source app (the one where the new app
is launched from) is not enabled during the time frame that the "launched
app" is in use.

Thanks !
Rob

You second application is still an assembly. Therefore you could add
it into your main VB project, set a reference to it, and instantiate
objects (like Forms) in it. You can pass paarmeters either by creating
properties of the form object to receive them or, even better, by
adding these parameters to the constructor (New method) of the forms
objects you need to instantiate. When your process completes the
return values can be placed in an object that is read by the main
application. Since this is being down sychronously, the process of
passing and receiving data is much simpler.

Access to the main app can be prevented by setting the main forms
Enable property to False.

Thanks

Carl
Jun 27 '08 #3

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

Similar topics

2
by: Liang | last post by:
Hi, I use "defined $r_libs->{$name}" to check first if a key exists in a hash table. But Perl gives a warning WHENEVER the key exists: "Use of uninitialized value". Would u please help to...
2
by: Ralf | last post by:
Hi ! When I insert a new record to a table "table_A" I want to Grant a Role "Role_X" to the User "User_Y". So I made a Trigger who should do this work, but it doesn't: When I write: "GRANT...
3
by: fareeda | last post by:
What is the equivalent of "@" (oracle) in db2? I could use -f option but the basic requirement is to be able to call file Y from file X. In Oracle I can have file X as: --- command 1; command...
2
by: Vivek Khera | last post by:
In order to try to reduce lock contention on my FK's, I need to convert them to DEFERRABLE. The straightforward way is to drop and recreate the modified FK. However, on a table with 65M rows,...
4
by: Lucky | last post by:
hi guys! Currently i'm facing a bit odd situation. i cant modify my code so i have to make changes in SQL Server. the problem is, i've modified one table by adding new column and now i want...
7
by: rob c | last post by:
Hi Does anyone know what triggers a "popup blocker"? I'm going to be opening some sub-windows from my main page and don't want to get caught in a blocker. Thanks Rob
3
by: rdudejr | last post by:
Hi all, Ive got a database approx 350 GB in which Im getting very high Time waited for prefetch. This is directly out of the snapshot for the db (these are for the entire database I assume as I...
3
by: 01423481d | last post by:
Hi All I am facing a very strange "problem" on the captioned issue, I hope I can explain it clearly. Actually I am developing an interface (using VB.net) which read records from a file and...
1
by: Rudolf Bargholz | last post by:
Hi, We have created triggers to log modifications to tables in our application. The triggers work fine, just on one of the tables in our database the triggers fail with the error message...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: 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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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...

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.