The MP3car.com Store  

Welcome to the MP3Car.com forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. Registering will also remove advertisements. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development > Coders Corner

Reply
 
Thread Tools Display Modes
Old 06-13-2007, 11:09 AM   #1
Newbie
 
Join Date: May 2007
Posts: 2
My Photos: (0)
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.
anosis is offline   Reply With Quote
Sponsored Links
Old 07-08-2007, 10:07 AM   #2
Low Bitrate
 
Thelgord's Avatar
 
Join Date: Jan 2007
Posts: 57
My Photos: (0)
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%

Thelgord is offline   Reply With Quote
Old 07-22-2007, 01:50 AM   #3
Newbie
 
Join Date: May 2007
Posts: 2
My Photos: (0)
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.
anosis is offline   Reply With Quote
Old 07-23-2007, 04:57 PM   #4
Low Bitrate
 
Thelgord's Avatar
 
Join Date: Jan 2007
Posts: 57
My Photos: (0)
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%


Last edited by Thelgord : 07-23-2007 at 05:18 PM.
Thelgord is offline   Reply With Quote
Sponsored Links
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ME 2.3.2 external app problem tmar89 Media Engine 3 09-30-2005 06:37 PM
Beta-Testing External Application Code CarComp Media Engine 2 02-17-2005 10:42 PM
[HOWTO] Make a custom external app button netsuo NeoCar Media Center 0 11-15-2004 05:42 AM
External App support SteveC Media Engine 1 04-21-2004 12:32 AM
Questions for developers SuperG35 ME Archive 28 08-26-2003 10:12 AM


All times are GMT -5. The time now is 04:13 PM.


Sponsored Links
The MP3car.com Store

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Copyright © 1999 - 2008 Mp3Car.com Inc.
Ad Management by RedTyger
Message Board Statistics