Languages :: Visual Basic :: diactivate an Ole object |
|||
| By: gteko |
Date: 10/12/2009 22:10:57 |
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 | Type : Answer |
|
| OLE1.Stop(); ? OLE1.Dispose(); ? free the OLE object so that it stops ;-) |
|||
| By: OpConsole | Date: 03/04/2011 19:11:47 | Type : Comment |
|
| force close | |||
|
Do register to be able to answer |
|||
©2010 These pages are served without commercial sponsorship. (No popup ads, etc...). Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE.
Please DO link to this page!








