DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: insert Flash into vb

  1. #1
    Lindsay Guest

    insert Flash into vb


    i got two questions:

    1)how to insert a macromedia flash file into vb? and how to make to continue
    palying?

    2)i got a pictureBox which the size is bigger than the picture frame, how
    to make the pictureBox so that it can scroll?

  2. #2
    Mike D Sutton Guest

    Re: insert Flash into vb

    > 1)how to insert a macromedia flash file into vb? and how to make to
    continue
    > palying?


    Project -> Components -> Shockwave Flash

    '***
    With ShockwaveFlash1
    .Movie = "X:\Path\MyMov.swf"
    .Loop = True
    .Playing = True
    End With
    '***

    > 2)i got a pictureBox which the size is bigger than the picture frame, how
    > to make the pictureBox so that it can scroll?


    Drop a second picture box and two scroll bars (One horizontal and one
    vertical) into the first picture box and display whatever image you want in
    the internal picture box. Then if the height of the internal picture box is
    more than that of the external picture box then show the horizontal
    scrollbar and make it scroll from 0 to whatever the height difference is.
    In the scroll box's .Scroll event tell it to set the .Top property of the
    picture box to -(Whatever the scroll bar's value is). Same goes for the
    horizontal scroll bar apart from it's based on width and you set the .Left
    property.
    It's not the best way of handling a scroll but it's nice and easy.
    Hope this helps,

    Mike


    -- EDais --

    - Microsoft Visual Basic MVP -
    WWW: Http://EDais.earlsoft.co.uk/
    Work E-Mail: EDais@btclick.com
    Other E-Mail: Mike.Sutton@btclick.com



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center