Reputation: 1
Me.Panel1.Controls.Clear()
Dim newV As New LinkTextwithVideo
Me.Panel1.Controls.Add(newV)
This is the code i used to add and remove UCs in form
so, the application is like a computer based training module where each User control form has different contents and video(which is played in Windows media player), i have used me.panel1.controls.clear to remove UCs and change to new UCs but while changing, my videos are running in background
Upvotes: 0
Views: 171