Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

A program to repel mosquitoes?

Tags:

c#

People also ask

Is there an app that keeps mosquitoes away?

A new smartphone app can rescue you from that imminent bite. Called "Mosquito Repellent", it will repel mosquitoes by emitting high frequency sounds that mosquitoes hate. You can also track the amount of bugs in your area and view maps where they are the worst, with an additional feature called "M Tracker".

What is the most effective way to repel mosquitoes?

When researchers from New Mexico State University tested a variety of commercial products for their ability to repel mosquitoes, they found that a product containing lemon eucalyptus oil was about as effective and as long lasting as products containing DEET.

What are the 3 ways to prevent mosquitoes?

Maintain fly screens on windows, doors, vents and chimneys. Use insect sprays and repellents containing either picaridin or DEET, both inside and outside the house to kill mosquitoes. Remove stagnant water around the house so mosquitoes can not breed.


using System.Runtime.InteropServices;

[DllImport("KERNEL32.DLL",
EntryPoint="Beep",SetLastError=true,CharSet=CharSet.Unicode,
ExactSpelling=true,CallingConvention=CallingConvention.StdCall)]

public static extern bool Beep(int pitch , int duration);

Beep(500,1000); 

It seems you can do this with an unmanaged call to native Windows code, as described in http://www.geekpedia.com/code118_Beep-In-The-PC-Speaker.html.