>I cant even get this code working
>What using statement do I need
You shouldn't need any - it's an API call
>Where does the code go
Where you want a beep <g>
Seriously, just to clarify: you say the VB example works and the C# does not ? What happens with the C# version?
What platform are you targeting - maybe not all support the MessageBeep() API call?
If all else fails you could, of course, import the VisualBasic dll:
using Microsoft.VisualBasic;
MessageBeep(x);
It might give you better cross-platform support but the DLL size may be a factor....
HTH,
Viv