Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
A

ADLER1

@ADLER1
About
Posts
3
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to develop vedio and audio chat in asp.net ( c#.net )
    A ADLER1

    I hope it was a joke....................

    _____________________________ The force of .NET is with me!

    Visual Studio csharp asp-net business tutorial lounge

  • Can I fully target .NET 2.0 with Visual Studio 2008 Professional?
    A ADLER1

    In project properties you can choose what version of .NET should be used.

    _____________________________ The force of .NET is with me!

    Visual Studio csharp asp-net visual-studio wpf com

  • GetManifestResource problem
    A ADLER1

    Hi Ronald, there are some ways to solve your problem: 1. you can distribute your wav file in a specific subfolder of your application, e.g. Sounds. Then you just set the filename variable to the following value: string filename = Application.StartupPath + @"Sounds\attention.wav"; Don't forget to include using System.Windows.Forms. or type the namespace with the Application.StartupPath 2. You add the audio file as manifest into your exe. Then you need to call the following function: System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream(typeof(Program), "attention.wav") Note that you get a System.IO.Stream, so maybe need to save it in a temporary file and then call your PlaySound method (I don't know if your function supports a stream object as a parameter) So, these are the ways, I retrieved quickly from my mind at 23:17 :) (German time) PS: In the second solution I wrote typeof(Program). Program is a class generated by VisualStudio when you create a new project, so I used this here :) I hope I could help you

    _____________________________ The force of .NET is with me!

    C# help question learning csharp visual-studio
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups