Results 1 to 5 of 5

Thread: Sending Information Between Two VB Programs

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2009
    Posts
    227

    Sending Information Between Two VB Programs

    I'm wanting to transfer data between two programs. Basically, I have one program which is the "monitor" program. It opens another program and will fill a textbox in said program and then click a button on the program. When everything is done after clicking the button, the program will need to send something back to the monitor to tell it to close the program and open up another one to start the process over again.

    How would I go about doing this?

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Sending Information Between Two VB Programs

    Are you creating both programs? Is the client program supposed to know that the server exists, or should it be unaware that it's being controlled by a program rather than a user?
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Aug 2009
    Posts
    227

    Re: Sending Information Between Two VB Programs

    I am creating both programs, therefore I will know all of the control names, etc. etc.

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Sending Information Between Two VB Programs

    You've only answered one of my questions.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5
    Frenzied Member
    Join Date
    Jan 2006
    Posts
    1,875

    Re: Sending Information Between Two VB Programs

    you can use socket programming for this. May be this example will be helpful to you.
    __________________
    Rate the posts that helped you

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width