473,728 Members | 1,437 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Receive events from other project

Hi!
I have 3 projects. One is class library type, which has an static class that
contains an static event, and a static method that fires the event. The
others two projects are Windows Appliocation type (App1, App2). The App1
subcribe to receive notifications from the ClassLibrary static event. When
de App2 call the static method that fires the event, the App1 never receive
the notification.
Is possible do what i want?
Thanks

PD: Sorry for my bad english =(....
Jan 3 '06 #1
3 1728
My guess would be because each app runs in its own process and cannot share
memory. Therefore when you bind the handler in one app, it is not seen by
the other app because each app has its own copy of the variable.

I doubt this is possible with simple event handling. You may need to use
something like remoting to communicate between the apps.
"Alejandro" <@> wrote in message
news:ua******** *****@TK2MSFTNG P14.phx.gbl...
Hi!
I have 3 projects. One is class library type, which has an static class
that
contains an static event, and a static method that fires the event. The
others two projects are Windows Appliocation type (App1, App2). The App1
subcribe to receive notifications from the ClassLibrary static event. When
de App2 call the static method that fires the event, the App1 never
receive
the notification.
Is possible do what i want?
Thanks

PD: Sorry for my bad english =(....

Jan 3 '06 #2
<"Alejandro" <@>> wrote:
I have 3 projects. One is class library type, which has an static class that
contains an static event, and a static method that fires the event. The
others two projects are Windows Appliocation type (App1, App2). The App1
subcribe to receive notifications from the ClassLibrary static event. When
de App2 call the static method that fires the event, the App1 never receive
the notification.
Is possible do what i want?


Not without using remoting. You need to understand that static members
are still scoped to the AppDomain, and when you run two processes,
you'll get (at least) two AppDomains.

--
Jon Skeet - <sk***@pobox.co m>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Jan 3 '06 #3
Hi, Alejandro,

Did you find a way to do this? I have a similar problem. I wonder how to use
..net remoting to do it.

Thanks

Dave

"Alejandro" wrote:
Hi!
I have 3 projects. One is class library type, which has an static class that
contains an static event, and a static method that fires the event. The
others two projects are Windows Appliocation type (App1, App2). The App1
subcribe to receive notifications from the ClassLibrary static event. When
de App2 call the static method that fires the event, the App1 never receive
the notification.
Is possible do what i want?
Thanks

PD: Sorry for my bad english =(....

Jan 23 '06 #4

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

Similar topics

0
1457
by: Marc ENGEL | last post by:
Hi all, I coded a python COM object that runs in a pythonw local server as a STA. This object creates and advises a VC++ COM object to receive its event. Those events are sent by worker threads. The VC++ object is free threaded. As a consequence call between my STA python object and apartment are marshalled through proxy.
12
3839
by: Sven Groot | last post by:
I have a Windows Service application that acts as if it's an SMTP server. Outlook connects to this service, which is always running on the localhost. This works fine most of the time. However, sometimes it will no longer receive anything from Outlook. Socket.Receive would block indefinitely (actually, Socket.Poll times out, because that's what I'm using). Outlook sends it, because when I'm stepping through the code with the debugger,...
11
1807
by: dave | last post by:
I have been using vb.net /asp.net for 2 years. I am slowing switching over to c# and have 2 questions. 1.) Within vb.net I can go into asp.net project properties and I can enter the imports once for the project. Can I do this with a c# asp.net project? (or am i forced to put using on each and every asp.net page?) 2.) Within vs.net with a vb.net project, while editing the code behind file, i have 2 drop downs along the top
2
1119
by: glenn | last post by:
I have a very serious problem with my forms and components that I was wondering if there was a way to turn off. The problem is as follows: 1) create a form and place 50 components on the form with various types of events attached to each field and grid, such as exit events, key press events and so on. 2) Deside at some point that you made a mistake and need to have a tabbed notebook on the form to help break down the clutter and...
9
3405
by: esafran | last post by:
Hi, I've have encountered a very strange behaviour under C#. My application is registering for: Microsoft.Win32.SystemEvents.DisplaySettingsChanged & Microsoft.Win32.SystemEvents.UserPreferenceChanged When I run my application as a Console Application (not as a service), my application receives the events when I change the screen resolution or change from Dual View to Horizontal Span or to Single View.
12
2800
by: scsharma | last post by:
Hi, I am working on creating a webapplication and my design calls for creating main webform which will have menu bar on left hand side and a IFrame which will contain all the forms that are shown when menu items are clicked.Besides these i would like to put a custom status bar. Any error message encountered in any of the webpage will be displayed in the banner. The problem iam encountering is how to access the customer status bar in child...
0
1859
by: Peter | last post by:
I have a VB6 program which can receive Keydown events on an ActiveX control. The ActiveX control can't fire keydown events so I put a picturebox below the ActiveX control. I write codes in function picturebox_keydown in response to the keydown events on the ActiveX control. These can work well. But when I update these codes to vb.net I got a message 'UPGRADE_WARNING: PictureBox event Picture1.KeyDown can't be updated. Click to get more...
6
17199
by: ransoma22 | last post by:
I developing an application that receive SMS from a connected GSM handphone, e.g Siemens M55, Nokia 6230,etc through the data cable. The application(VB.NET) will receive the SMS automatically, process and output to the screen in my application when a message arrived. But the problem is how do I read the SMS message immediately when it arrived without my handphone BeEPINg for new message ? I read up the AT commands, but when getting down...
5
2400
by: raylopez99 | last post by:
I understand delegates (static and non-static) and I agree they are very useful, and that the "Forms" used in the Windows .NET API could not work without them. That said, I'm curious as to how many heavy duty pro programmers in this newsgroup have actually used a delegate in their code, say in the last year of coding. By "use" I mean constructed a delegate and using it in an Event Source class and an Event Receiver class. Interfaces...
0
8756
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9126
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8123
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6012
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4524
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4787
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3232
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2649
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2159
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.