myFormHost = new WindowsFormsHost(); myContainer = new ContainerControl(); myFormHost.Child = myContainer; stackPanel1.Children.Add(myFormHost); sounddevice = new DS.Device(); sounddevice.SetCooperativeLevel(myContainer,CooperativeLevel.Normal); BufferDescription description = new BufferDescription(); description.ControlEffects = false; shotsound = new Microsoft.DirectX.DirectSound.SecondaryBuffer('Stream Source',description, sounddevice);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)