Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I have a win app with a textbox and a button. User enters a number in the textbox and hits the button. At this point I want to open/show a different application. The second app does something based on what the entered number was. Can this be done when the second app is a win app? how about a web app?

 

Basically I am wondering what the limitations are in terms of communication between the 2 applications. I need for the first application (the win app) to pass parameters and drive the second app. I would like to do this through managed code and not some win api. Can this be done?

 

Can I have control over what goes on in the second app? Would this be more or less difficult if that second app were an asp.net app?

Wanna-Be C# Superstar
Posted

It sounds to me like what you really need is the Windows API, namely the SendMessage API, defined like this.

Public Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long 

There may be a managed equilivent, but I am not privy to that information. As for cross application communication from a Windows Forms App, to a Web Application, I think a WebService is the way to go.

~Nate�

___________________________________________

Please use the [vb]/[cs] tags on posted code.

Please post solutions you find somewhere else.

Follow me on Twitter here.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...