Results 1 to 4 of 4

Thread: Please help: Need sample code in VB to open external app and...

  1. #1
    Newbie
    Join Date
    May 2007
    Posts
    2

    Please help: Need sample code in VB to open external app and...

    I started after many years of not coding and decided that VB would be the easiest for me to get back into the game. I used to program turbo pascal, but those days are long gone.

    So I started a simple form with a button that uses the diagnostic.process.start to open an new process, in my case iguidance. That works just fine but I have no control over the size and the location of the IG application.

    Could someone please post some sample code that shows how to open the application, resize and locate it and possibly even show how to get rid of borders?

    Sorry for such newbie questions as I am sure most around here that consider themselfs beginners even know more than I do, but I just need a little help to get off the ground.

    Also, if there is good websites that give outstanding turorials with sample code to get going in other areas that would be great as well.

    Thanks alot in advance.

  2. #2
    Low Bitrate Thelgord's Avatar
    Join Date
    Jan 2007
    Location
    Wahiawa, HI
    Posts
    67
    I will assume your are talking about vb.net. Personally I use the express the editions.

    I will also assume, based on what you say you are trying to do, that you are working on a frontend. If these are wrong please let me know.

    As a direct answer to your questions I think this is what your looking for:
    Google is your friend.


    CarPuter
    ----------------------------
    Planning....[||||||||||]60%
    Parts.......[||||||||||]20%
    Construction[||||||||||]0%
    Software....[||||||||||]0%


  3. #3
    Newbie
    Join Date
    May 2007
    Posts
    2
    Thanks Theglord

    I managed to use that methode that is explained in the link you provided and also I managed to use the Function SetWindowPos to place the applications where I would like them. It took me a while to figure out a good way to get the correct window handle as some apps use splash screens and it would place that instead of the actual app.

    I still have not figured out how to place an app insde a from of my own so I can hide the borders of the existing app. The function that lets me set the external app as a child of my form always seems to create some sort of exception.

    Oh well.

    I am playing around with multimedia content like DVD, mp3, MPG and so on.

  4. #4
    Low Bitrate Thelgord's Avatar
    Join Date
    Jan 2007
    Location
    Wahiawa, HI
    Posts
    67
    You may want to look at http://www.codeproject.com/vb/interop/VB6formsinNET.asp

    You need "your main form" to be an mdi container , and then you can set the external app as a "child" wich will display itself in the MDI container area.

    Hope this helps.

    [EDIT]
    If your looking in to emeding media player, quicktime video, etc.. you can use add thier veiw panels as a control (much like a panel) on your form with out embeding the entire app and still be able to control the audio/video playback. This will also save resources as it wont have to load the entire app to play the media.
    [/EDIT]


    CarPuter
    ----------------------------
    Planning....[||||||||||]60%
    Parts.......[||||||||||]20%
    Construction[||||||||||]0%
    Software....[||||||||||]0%


Similar Threads

  1. ME 2.3.2 external app problem
    By tmar89 in forum Media Engine
    Replies: 3
    Last Post: 09-30-2005, 07:37 PM
  2. Beta-Testing External Application Code
    By CarComp in forum Media Engine
    Replies: 2
    Last Post: 02-17-2005, 11:42 PM
  3. [HOWTO] Make a custom external app button
    By netsuo in forum NeoCar Media Center
    Replies: 0
    Last Post: 11-15-2004, 06:42 AM
  4. External App support
    By SteveC in forum Media Engine
    Replies: 1
    Last Post: 04-21-2004, 01:32 AM
  5. Questions for developers
    By SuperG35 in forum ME Archive
    Replies: 28
    Last Post: 08-26-2003, 11:12 AM

Bookmarks

Posting Permissions

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