Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Shockwave Flash object in a win Form

Status
Not open for further replies.

xerife007

Technical User
May 7, 2002
40
PT
Hi Forum

I use a Shockwave Flash object in one form, the problem begim when I maximize the form and my flash object stay in the midle of the form and what i want is that object maximize with my form.

Regards
peter


 
Try Anchoring the flash object. Something like

Code:
      Me.flashObject.Anchor = CType ((((System.Windows.Forms.AnchorStyles.Top 
                    Or 
System.Windows.Forms.AnchorStyles.Bottom) _
                    Or System.Windows.Forms.AnchorStyles.Left) _
                    Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)

You can do the same using designer property window as well.

-Kris
 
My code is this,

Private Sub playflash()

With AxShockwaveFlash1
.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top or System.Windows.Forms.AnchorStyles.Bottom) Or System.Windows.Forms.AnchorStyles.Left) Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
.Stop()
.Movie = "C:\Novax\Novax-Server\Data\Pubslabo\T011.swf"
.Playing = True
End With

End Sub

My control appear in the left side of my form and don't stay in full screen li i expected.

Thanks
 
Hmmm... thats interesting. It looks like your flash file animation is very small. Because from your first post without anchoring it was showing up at the center of the screen and now with Anchoring it is showing up at left side corner of the screen. Did you try opening the flash file in IE, see how is it showing up in IE. If it is small there too may be you have to ask your graphic designer to make it little more bigger.

-Kris
 
Hi Kris,

I already solve the problem with Dock property and I select the Fill parameter.


Thanks for all

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top