Results 1 to 9 of 9

Thread: Destinator SDK 2 (C#)

  1. #1
    Constant Bitrate Jeep's Avatar
    Join Date
    May 2004
    Location
    Sweden
    Posts
    153

    Destinator SDK 2 (C#)

    Hi!

    Can I change the with and heigt of the Destinator window, or embed it in a picture box, looks better that way in my "car softweare project"..

    Working in .NET C#

    Thanks!



    Oh, here is "get started" code in C#

    private DESTDLLLib.DestClass mainDest = new DESTDLLLib.DestClass();

    mainDest.CreateDestinatorWindow (2);

  2. #2
    Raw Wave Confused's Avatar
    Join Date
    Aug 2003
    Location
    Essex, England
    Posts
    2,224
    To embed it, you will have to find some code to get the window handle, and set it's parent to the picturebox that you want it embedded in. You'll also want to remove the border and title bar, pretty simple to do once you know the window handle, I've done it in VB6, so it should be even easier in C#


    Garry
    Co-Developer of A.I.M.E.E
    www.aimee.cc

  3. #3
    Constant Bitrate Jeep's Avatar
    Join Date
    May 2004
    Location
    Sweden
    Posts
    153
    Garry, do you like to share the VB6 code?

  4. #4
    Raw Wave Laidback's Avatar
    Join Date
    Oct 2003
    Location
    Madrid
    Posts
    1,984
    See this thread - Embedding apps in vb6

  5. #5
    Constant Bitrate Jeep's Avatar
    Join Date
    May 2004
    Location
    Sweden
    Posts
    153
    Thanks. But... Moving a running exe to a picturebox in VB6 I can do, but I also want to maximize the app (Destinator) into the picturebox. How??

  6. #6
    Raw Wave Laidback's Avatar
    Join Date
    Oct 2003
    Location
    Madrid
    Posts
    1,984
    You make it the same size as the picture box!

    Search Google for the MoveWindow function.

  7. #7
    Low Bitrate migrane's Avatar
    Join Date
    Apr 2004
    Location
    Windsor, Ontario
    Posts
    95
    any1 care 2 share some c0de for embedding an exe into a picturebox?!VB6 preferably

  8. #8
    Raw Wave Laidback's Avatar
    Join Date
    Oct 2003
    Location
    Madrid
    Posts
    1,984
    Quote Originally Posted by migrane
    any1 care 2 share some c0de for embedding an exe into a picturebox?!VB6 preferably
    Did you not look at the link????

  9. #9
    Constant Bitrate Jeep's Avatar
    Join Date
    May 2004
    Location
    Sweden
    Posts
    153

    Wink

    Ok, some code in VB6

    Can some one port the code to C# for me ?
    Attached Files Attached Files

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
  •