VBAHole22 Posted November 2, 2005 Posted November 2, 2005 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? Quote Wanna-Be C# Superstar
Nate Bross Posted November 2, 2005 Posted November 2, 2005 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. Quote ~Nate� ___________________________________________ Please use the [vb]/[cs] tags on posted code. Please post solutions you find somewhere else. Follow me on Twitter here.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.