|
Hello,
So I did my homework and I learned and succesfully created a custom event. Now I want to go to the next level. I want to trigger the event an app1 and hear it on app2. Is it possible? For example. Let's say we created two Console Applications one was just listening and the other one was triggering an event.
|
|
|
|
|
You'll need more than events to communicate between applications.
If the 2 apps are on the same machine, you can communicate between them using pipes. See System.IO.Pipes[^] in the latest .NET framework.
If the 2 apps are on different machines, you'll want to use a robust communication mechanism like Windows Communication Foundation (WCF)[^] or Remoting[^]. WCF is the latest communication technology, Remoting is an older technology.
|
|
|
|
|
Are those water pipes or gas pipes? Thanks. I'll look into it.
|
|
|
|
|
Member 3537109 wrote: Are those water pipes or gas pipes? Thanks. I'll look into it.
Specifically, "Named Pipes".
|
|
|
|
|
There's some articles on here - just search for named pipes[^]
I believe that they can be used across a LAN to communicate between different machines as well. Also, I read somewhere that they're useful for interapp communication in Vista where other methods can fail
Dave
|
|
|
|
|
Hello one and all,
I have strange issue with my .net 2.0 windows application. The application shows an empty error messagebox sometimes (gridrow double click in a datagridview, tab click and in some cases even on application launch). However this only happens with some deployments and gets corrected (no code changes) in the subsequent deployments.
It will be of great help if anyone can help me in resolving this issue.
Warm Regards,
Krishna Murthy
|
|
|
|
|
I've never come across this before. Without more info there's probably not much more anyone can do from here.
(an empty error message box kind of makes me think of out of memory problems though.)
Does the app crash after the empty message box?
If you can recreate it reliably, don't click ok to the message box, just leave it, and try and attach a debugger (you can do remote debugging if it only happens on production machines) to it so you can see what's happening.
Or, if it crashes, use ADPlus to get a crash dump, and analyse it with windbg. (Debugging .NET 2.0 application by John Robbins is the best resource I've ever read for learning how to use ADPlus and windbg)
You'll have to make sure all your builds include full debug symbols, you've got a symbol server, and the correct source archived for the version.
Simon
|
|
|
|
|
As Simon mentions its very hard to give any advice without more information, in terms of what you have tried already?
Looking on google one person has had an issue with a ClickOnce application and blank message boxes but the only way they solved it was uninstalling software which is not reliable or the best solution!
Without sounding too obvious the first port of call would be to the application\event logs to ensure nothing has been logged there with the error which could be of use. If not then Simons ideas are the way forward without giving us more information.
p.s. When searching google i did find this query on another website (posted by you ) so if you do solve it let us know.
|
|
|
|
|
Hello,
I have a small application which creates a WebService using .netRemoting technoligy.
The problem I have is that the WebService starts correctly but I don't know how the WebService can return informations to the object which has created the WebService.
Explanation:
------------------
I have one class names "myFirstTest". In this class I start the WebService with the following code:
RemotingConfiguration.RegisterWellKnownServiceType(typeof(MyTestServer),"MyTestServer", WellKnownObjectMode.Singleton);
In MyTestServer I have the definition of all functions calls that can be done over SOAP but I don't know how to inform my class "myFirstTest" that a function call has been done in my WebService.
If I could at least get the object representing the WebService I would get a chance to pass it the instance of "MyFirstTest" object to allow it to call functions in "MyFirstTest", but I don't know how to get the object representing the WebService
Do you have any idea?
Thanks in advance for your help.
Alain.
|
|
|
|
|
Nobody to help me?
Please let me know if you need more details
Alain
|
|
|
|
|
I have one tree with parent node and 6 child nodes.I want to count number of child nodes. If I uncheck any childnode(s) than messagebox should display number of checked child nodes . If I deselect 4 child nodes than messagebox should display number "2".
I am using this approach but not getting sucess
private void count(TreeNode node)
{
int j = node.Nodes.Count;
MessageBox.Show(j.ToString());
foreach (TreeNode child in node.Nodes)
{
if (child.Checked == false)
{
j--;
}
MessageBox.Show(j.ToString());
}
}
this code count number of unchecked nodes when i select parent, i want to check itereatively on uncheck of each child!
any kind of help will e appreciated.
|
|
|
|
|
|
Thanks Stu for early for reply!
I am using on after check event and it is working okay. I guess I could explain problem in good way. Now each time I have to click on parent to verify how many child nodes are selected. Actually I want to store the number of unselecteded nodes in a variable, so I don't have to click on parent node to check that.
Thanks for the link and reply! I am quite close to solution now...
|
|
|
|
|
Hello all!!
What I want to do is to create rtf files with c# and then read them page by page(for example every page can contain 50 lines). Can anyone advise me on how to do this? I think there should be a way of inserting pagebreaks but not shure. Is this the right way? If it is I don't have an idea of how to read the pagebreak...
Thank you!!
|
|
|
|
|
|
I'm not shure if I am able of writting down my own parser. Also I tryied out the library you suggested, but could not use it. I imported the dll file and still din't manage it. I'm new in programming and have not enough experience. Could you please help me out here??
|
|
|
|
|
|
I am looking for an efficient method to synchronize my forms. In my application I have a class named "FormContext " where singleton properties of available forms are present. These are lazily loaded. Assume I have two windows open (first window is not visible as it's on the back), I need to synchronize the forms state and size when any of the form resizes. All my forms are inherited from a class called "BaseForm ". For synchronizing, this is what I did,
1 - Created a static event in the FormContext class say BaseFormResized
2 - Hooked this event when each form starts
3 - In the "BaseForm"s resize event, I am calling this event to synchronize the other forms.
This method is working, but the forms are flickering and I am unable resize it by dragging it. Is there any other efficient method available to keep the forms synchronized ?
|
|
|
|
|
Sounds like your getting stuck in a infinite loop.
If each form is responding to BaseFormResized events and resizing themselves to match, that will trigger another resize event, which the form will again respond to...etc...
When you respond to the BaseFormResized event, first check if form is already the correct size. If it is, then don't do the resize. This will prevent a second resized event getting triggered, so hopefully you won't get the loop.
If this doesn't work, post some code so I can see what's going on.
Simon
|
|
|
|
|
hi all,
i am using .net 3.0.and iam working on c#.i want to add background music for my asp.net application when it is viewing in browser.can anyone help me
|
|
|
|
|
1 - This is wrong forum, choose web developement forum instead
2 - This has nothing to do with ASP.NET. ASP.NET processes the markup and sends HTML back to browser. It can't play music. This is done with HTML
3 - Learn to google[^]
|
|
|
|
|
I am using VS 2003 for my current project.I am supposed to use Datagrid with checkbox columns in my project ,but that one is not in VS2003.Is there anyway to use VS2005 Datagrid in VS2003...
|
|
|
|
|
Nope. AFAIK, there is no way to do this
|
|
|
|
|
No, you can not use classes from .NET 2.0 in your .NET 1.1 app.
|
|
|
|
|
Nope. Also don't use bold text and don't expect too much help. We know who you are Subin Raju, and the level of abuse you hurled at Paul Marfleet when he tried to help you. Now, unlike you, I will be polite to people on these forums but not to a berk like you.
|
|
|
|