Results 1 to 5 of 5

Thread: [RESOLVED] to embed or not to embed, that is the question

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jun 2006
    Posts
    26

    Resolved [RESOLVED] to embed or not to embed, that is the question

    I have a flash.exe that calls a vb.exe via fscommand. This works. However, i need the vb.exe to catch other custom fscommands which will be executed via a sub in the vb.exe. Is this possible? When the flash.exe is embedded in the vb.exe, I have no problems except i cant show the flash.exe in full screen. it appears to be limited by the component container size on the form. When i have the flash.exe as a standalone it will play fullscreen no prob, but the vb.exe doesnt seem to catch the fscommands.

    Quite simply:

    1. flash.exe embedded in vb.exe = no fullscreenflash/ but functional = not acceptable.

    2. flash.exe as standalone calling vb.exe = fullscreen flash / not functional = not acceptable.

    What i need is:

    flash fullscreen calling vb.exe and receiving fscommands and sending to sub in vb.
    OR
    flash fullscreen embedded in vb.exe to receive commands and send to sub in vb.

    all of my communications are FLash ->VB.

    I hope that is clear. I appreciate any help i can get.

    FYI: I am most curious about the ability of standalone flash.exe to send fscommands to a standalone vb.exe, and how those are caught by vb.

  2. #2
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: to embed or not to embed, that is the question

    you can go full screen with the form...

    make the form borderless..

    then in form load

    me.Windowstate = vbMaximized

    then in form Resize...

    Flashplayer.left = 0
    Flashplayer.top = 0
    Flashplayer.width = me.width
    Flashplayer.height = me.height


    hows that?
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jun 2006
    Posts
    26

    Re: to embed or not to embed, that is the question

    i follwed you to the form resize part. is this done from the proerties window? or is there a form_resize coding model i can work from? I have played with the sizing in properties and have gotten the component window as fullscreen with respect to width, however there is still a rather dull gray bar at the bottom. The form is in fullscreen on launch. I appreciate your help. But i need a bit more info.

  4. #4
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: to embed or not to embed, that is the question

    in the properties window .. for your form

    Set BorderStyle = 0-None

    then this is the code in the form.

    VB Code:
    1. Private Sub Form_Load()
    2.     Me.WindowState = vbMaximized
    3. End Sub
    4.  
    5. Private Sub Form_Resize()
    6.     'Rename Text1 to your Flash Control name
    7.     Text1.Left = 0
    8.     Text1.Top = 0
    9.     Text1.Width = Me.Width
    10.     Text1.Height = Me.Height
    11. End Sub
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Jun 2006
    Posts
    26

    Re: to embed or not to embed, that is the question

    Thanks, you are the man!

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