CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2012
    Posts
    1

    How to control one VB program from another VB program

    I am new to this forum ... I have a "quick question"¨:

    To keep things simple, let's assume that both VB Program1.exe and VB Program2.exe are up and running. Let me just boil it down to a Program1.Exe with a Control1Button. When I push that Control1Button I'd like a Control2Button in Program2.exe to be clicked (to react to a click event).

    If someone can show me this, then I think I could do the remainder of tying the manager program1 with the worker program2.

    Thanks kindly.

  2. #2
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: How to control one VB program from another VB program

    Create a .DLL that you can then use in your project(s). It can have methods that accept arguments, and returns a specific type of result. Load that .DLL from Project1 and it will work. You can mix various .DLL's that are designed to work TOGETHER.
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  3. #3
    Join Date
    Jun 2005
    Location
    JHB South Africa
    Posts
    3,772

    Re: How to control one VB program from another VB program

    use DDE linking...

    this article will explain everything to you..
    Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
    WPF Articles : 3D Animation 1 , 2 , 3
    Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
    Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
    All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.

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

Featured