CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    May 2001
    Posts
    155

    add from another program

    how do you make it so that when the user loads a program it adds a command button to another program that's not running???

    --Ant
    --------------------------------------------------
    check out my newest freeware
    E-mail me at: [email protected]
    for the address

  2. #2
    Join Date
    May 2001
    Location
    Russia
    Posts
    200

    Re: add from another program

    I see one way to do this.
    Create dynamic control in program and read information about this control from file. Then run needed program, it write in file information about new control.
    If you run dynamic programm, it read from file and create needed control.

    Andy Tower

  3. #3
    Join Date
    May 2001
    Posts
    155

    Re: add from another program

    ok. how do i do that?

    --Ant
    --------------------------------------------------
    check out my newest freeware
    E-mail me at: [email protected]
    for the address

  4. #4
    Join Date
    May 2001
    Location
    Russia
    Posts
    200

    Re: add from another program

    In static programm write
    Dim f as Integer
    f = FreeFile
    Open "test.txt" for Append as f
    print #f, "CommandTest"
    Close f



    In dinamic programm write
    Dim f as Integer
    Dim strTest as string
    f = FreeFile
    Open "test.txt" for input as f
    input #f, strTest
    Close f



    Test strTest variable and add any command button in button array in form into dinamic programm

    Andy Tower

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