I want to programmatically add a Flash control to my form that
already has some Flash controls. (so I know the references are right) I
tried the following code but it does not work. Do you see anything I may be
missing... I had to comment
out the one line ...
'AxShockwaveFlash10.OcxState = ...
because the "Resources.GetObject" was saying GetObject is not a member of
Resources.
Here is the code...
'AxShockwaveFlash10
Dim AxShockwaveFlash10 = New AxShockwaveFlashObjects.AxShockwaveFlash
'
AxShockwaveFlash10.Enabled = True
AxShockwaveFlash10.Location = New System.Drawing.Point(100, 100)
AxShockwaveFlash10.Name = "AxShockwaveFlash10"
'AxShockwaveFlash10.OcxState =
CType(Resources.GetObject("AxShockwaveFlash10.OcxS tate"),
System.Windows.Forms.AxHost.State)
AxShockwaveFlash10.Size = New System.Drawing.Size(152, 144)
'AxShockwaveFlash10.TabIndex = 29
Controls.Add(AxShockwaveFlash10)
AxShockwaveFlash10.Movie = strCurDir + "\MyFlash.swf"
AxShockwaveFlash10.Play()
AxShockwaveFlash10.Loop = True