or
This code is inside the form load event. But when I run the application, the movie is not playing. What to do to run the swf file from Windows forms? I'm using Managed C++/CLI for this application.<spanclass="code-keyword">this</span>-<spanclass="code-keyword">></span>axShockwaveFlash1-<spanclass="code-keyword">></span>BringToFront();<br> <spanclass="code-keyword">this</span>-<spanclass="code-keyword">></span>axShockwaveFlash1-<spanclass="code-keyword">></span>Movie::set(<spanclass="code-keyword">gcnew</span> System::<spanclass="code-SDKkeyword">String</span>(StringToWString(spath).c_str())); <br> <spanclass="code-comment">//</span><spanclass="code-comment">this->axShockwaveFlash1->CallFunction("<invoke" + "name=\"UserInformation\"returntype=\"void\"></invoke>");<br></span> <spanclass="code-comment">//</span><spanclass="code-comment">this->axShockwaveFlash1->SetVariable("file", "index.swf");<br></span> <spanclass="code-keyword">this</span>-<spanclass="code-keyword">></span>axShockwaveFlash1-<spanclass="code-keyword">></span>Play();
if (e.Row is GridDataRowElement && e.Column is GridViewDataColumn && ((GridViewDataColumn)e.Column).Name == "MyField"){ e.CellType = typeof(RadTextBoxEditor);}private void grdHuntGroups_CellFormatting(object sender, Telerik.WinControls.UI.CellFormattingEventArgs e){ e.CellElement.BorderBoxStyle = Telerik.WinControls.BorderBoxStyle.FourBorders; //Set back color based on service level if (e.CellElement.ColumnInfo.HeaderText.ToLower() == "soa") { e.CellElement.BackColor = Color.Yellow; e.CellElement.DrawFill = true; e.CellElement.GradientStyle = Telerik.WinControls.GradientStyles.Solid; e.CellElement.BackColor = (Color)e.CellElement.RowInfo.Cells["SOABackColor"].Value; e.CellElement.ForeColor = (Color)e.CellElement.RowInfo.Cells["SOAForeColor"].Value; } //Set thick border to seperate sections if (e.CellElement.ColumnInfo.HeaderText.ToLower() == "lg-out" || e.CellElement.ColumnInfo.HeaderText.ToLower() == "pres" || e.CellElement.ColumnInfo.HeaderText.ToLower() == "soa") { e.CellElement.BorderLeftWidth = 8.0f; e.CellElement.BorderLeftColor = Color.Black; e.CellElement.DrawBorder = true; }}