visitor (0 QPoints)
  • FR
  • EN
  • NL
  • DE
  • ES
315 experts, 1193 registered users, 1659 questions already answered
European Experts Exchange, the very best site for high-quality IT solutions

New Improved Search!

 


05/10/2011 1h30 : Steve Jobs is dead, the father of Apple ][ is gone, we are all orphaned.

Languages :: Visual Basic :: diactivate an Ole object


By: gteko Greece  Date: 10/12/2009 22:10:57  Greek English  Points: 20 Status: Answered
Quality : Excellent
I want to activate and deactivate an Ole object, a *wav one
The code i write is
Private Sub Form_Load()
OLE1.Action = 7
End Sub
and then i insert a label so that someone can go to another form, and i want to deactivate the ole when you go to the other form. I write
Private Sub Label1_Click()
Form1.Hide
Form2.Show
OLE1.Action = 9
End Sub

The *wav still plays even i go to the other form. How can i stop playing the Wav? What\\\'s going wrong?
By: VGR Date: 17/12/2009 00:24:32 English  Type : Answer
OLE1.Stop(); ?
OLE1.Dispose(); ?

free the OLE object so that it stops ;-)
By: OpConsole Date: 03/04/2011 19:11:47 English  Type : Comment
force close

Do register to be able to answer

EContact
browser fav
page generated in 778.213980 milliseconds

Why Google AdSense ads ?

compteur
 Ranking-Hits PageRank for this page