Tuesday, 27 May 2014

Sound Recorder in C#

Hello Programmer,

Here you are going to create a Sound Recorder in C#. The Recorded sound will be saved in .wav format. So let's start;


1. Open Visual Studio -> New Project -> Windows Form Application with name

2. Now add 3 buttons and a  label to the empty form and design it as shown in 
    the below screenshot.

3. Now change the name and text of the added controls from the Properties dialog box;

   Control          Control Name                Text
    Button1           btnRecord                    Record
    Button2           btnStopandSave            Stop and Save
    Button3           btnPlay                        Play
    label1              label1                          Recording...

4. Now double click on the Record button and copy the below code;

            label1.Visible = true;
            mciSendString("open new type waveaudio alias Som", null, 0, 0);
            mciSendString("record Som", null, 0, 0);

5. Now double click on the Stop and Save button and copy the below code;

            label1.Visible = false;
            mciSendString("pause Som", null, 0, 0);
            SaveFileDialog save = new SaveFileDialog();
            save.Filter = "wave|*.wav";
            if (save.ShowDialog() == DialogResult.OK)
                mciSendString("save Som " + save.FileName, null, 0, 0);
                mciSendString("close Som", null, 0, 0);

6. Now double click on the  Play button and copy the below code;

           if (record == "")
                OpenFileDialog open = new OpenFileDialog();
                open.Filter = "Wave|*.wav";
                if (open.ShowDialog() == DialogResult.OK) { record = open.FileName; }
            mciSendString("play " + record, null, 0, 0);

7. Now double click on the  Form and copy the below code;

         label1.Visible = false;

8. Now please update your code from the complete code shown below;


using System;
using System.Runtime.InteropServices;
using System.Windows.Forms;

namespace SoundRecorder
    public partial class Form1 : Form
        private static extern int mciSendString(string MciComando, string MciRetorno, int MciRetornoLeng, int CallBack);

        string record = "";
        public Form1()

        private void Form1_Load(object sender, EventArgs e)
            label1.Visible = false;


        private void btnRecord_Click(object sender, EventArgs e)
            label1.Visible = true;
            mciSendString("open new type waveaudio alias Som", null, 0, 0);
            mciSendString("record Som", null, 0, 0);

        private void btnStopandSave_Click(object sender, EventArgs e)
            label1.Visible = false;
            mciSendString("pause Som", null, 0, 0);
            SaveFileDialog save = new SaveFileDialog();
            save.Filter = "wave|*.wav";

            if (save.ShowDialog() == DialogResult.OK)

                mciSendString("save Som " + save.FileName, null, 0, 0);
                mciSendString("close Som", null, 0, 0);

        private void btnPlay_Click(object sender, EventArgs e)
            if (record == "")
                OpenFileDialog open = new OpenFileDialog();
                open.Filter = "Wave|*.wav";
                if (open.ShowDialog() == DialogResult.OK) { record = open.FileName; }
            mciSendString("play " + record, null, 0, 0);

8. Rebuild and Run the project;
  • Click on Record to start Recording.   
  • Recording label will be visible while sound is being recorded.
  • Click on Stop and Save button to Save the Recording. You will be asked for the location and filename to Save.
  • Now click on Play button to play the recorded file. You will have to select the file from the saved location.
        ENJOY Recording :-) 



In case of any doubts / errors, please drop in a comment.

See Also

Thursday, 22 May 2014

Text to Speech in C#

Hello Programmers,

Here you are gonna learn how to convert Text to Speech in C#  i.e you are going to create a software that Talks!

So lets start;

Thursday, 15 May 2014

How to Start and Kill a Process in C#


Here you are gonna learn to Start and Kill a Process in C#. Suppose if you want to open / close an application such as Notepad, Calculator etc with C# codes, this tutorial will be helpful. 

Let's start;

Tuesday, 6 May 2014

File Read and Write in C#


Here you are gonna learn File Read and Write in C#.

The below project deals with;
    a) Getting data (2 names) from the
    b) Write the data into a text file.
    c) Reading the data from the text file
        and displaying it.

so let's start

Sunday, 4 May 2014

How to Hide Folders in C#


Hope you have read my previous post on Lock a Folder in C#. Now here you can learn How to Hide a Folder in C#. So let's start;

Wednesday, 30 April 2014

Serialize and Deserialize in C#


Here you are gonna learn about Serialization & Deserialization in C#.


Serialization is the process of converting an object into a stream of bytes in order to store the object or transmit it to memory, a database, or a file. Its main purpose is to save the state of an object in order to be able to recreate it when needed. The reverse process is called Deserialization (From MSDN).

Thursday, 24 April 2014

Lock a Folder in C#


Here you will learn how to lock and Unlock folders using C#. This tutorial is of good use if you are planning to create a Folder Locking Software. 

Let's start;

Tuesday, 8 April 2014

How to Change IP Address in C#

Hi Friends, 

You have learned to Get IP Address in C# 
from the last post. Here you can learn to change IP Address using C#.

Let's start;

Monday, 31 March 2014

How to get IP Address using C#

Hello All,

Here's a tutorial to get your IP Address using C#. 

N.B: Beginners please follow the link to know How to create your First Windows Form Application.

Wednesday, 26 March 2014

Media Player in C#


You have learned to create a Music Player in C#, now here's a tutorial for creating your own Media Player in C# and press OK. 

Monday, 24 March 2014

Music Player in C#

Hi All,

Here you can learn to Create a Music Player in C#. This is a simple tutorial and even beginners can learn without any confusion.

This Player also supports video files (large files are not supported)

Monday, 17 March 2014

Digital Clock in C#

Hi Friends,

This is a simple tutorial to create a Digital Clock in c#. This is presented in a way so that even beginners can learn without any 'hiccups'. So lets start.

Thursday, 13 March 2014

OpenFileDialog in C#

Hi Friends, 

This tutorial is a continuation of First C# Windows Form Application. So now you know how to create a Windows Form Application in c#. Here you will learn how to use OpenFileDialog. OpenFileDialog is a control that allows users to browse folders and select files.

Here is a tutorial for creating an Image Viewer with OpenFileDialog. 


Thursday, 6 March 2014

First C# Windows Form Application

Hello All,

This is a very simple tutorial on how to create a Windows Form Application in c#.


Visual Studio 2008 or higher versions.

What is Windows Forms?
Windows Forms (WinForms) is the name given to the graphical application programming interface (API) included as a part of Microsoft .NET Framework, providing access to native Microsoft Windows interface elements by wrapping the extant Windows API in managed code. (Wiki definition)

So lets start.

Thursday, 27 February 2014

WCF Tutorial for Beginners

Definition of WCF 

Windows Communication Foundation (WCF) is a framework for building service-oriented applications. Using WCF we can build secure, reliable, transacted solutions that integrate across platforms.

Wednesday, 19 February 2014

How to play Video as wallpaper using VLC


Today softsprogrammer is here to share a trick to set any video as your Desktop Wallpaper using VLC Player. VLC Player is a powerful Video Player which has got a lot of features. To learn more features,  please follow this link

Monday, 17 February 2014

Hide Folders in Windows using Command Prompt (Hidden Trick)


We all know how to hide a folder in Windows.
Just Right Click on the Folder -> Properties -> Check the Hidden Option -> OK.

These Hidden Folders can be seen if you change the Folder Option to Show Hidden Files. 
Most of them know this trick, so you cannot hide a folder or a file from others using this option.

Softsprogrammer is here with a trick which makes your required Folders to Operating System Files. Please don't panic :-) this doesn't mean that your folder will be converted to an operating system file which the OS needs. No, your Folder's visibility is changed as same as to the visibility of Operating system Files. So these Folders will not be shown if you change the Folder Option to Show Hidden Files. So you can use this trick to hide your personal folders from others.

Sunday, 16 February 2014

How to use Keyboard as Mouse


What will you do if our mouse stopped working? This may due to some driver failures, or hardware issues etc. Don't worry, Windows have an inbuilt option called Mousekeys. Most of them are not aware of this feature, but now you are. You can Enable / Disable Mousekeys very easily.

By Enabling Mousekeys, you can use your Keyboard as a substitute to your Mouse.

Friday, 14 February 2014

Find Your Lost Mobile Using IMEI Number


International Mobile Station Equipment Identity or IMEI is a unique number to identify mobile phones.To know your IMEI Number just dial *#06# ,you will
get a 15 digit number.

This number can be used to Trace / Stop your phone from using the network whether or not the phone's SIM is changed.

So if your Phone is stolen, you can Find it by using the below trick based on IMEI Number.

Tuesday, 11 February 2014

How to Open Banned Websites


Here you will learn an awesome trick to open banned sites without downloading any softwares.

Many websites are banned in Colleges, Offices etc.Using this trick you can access those sites.

Here , I am revealing one of the fastest and secure proxy site for the same.

Monday, 10 February 2014

Show Messagebox in Windows


Here you will learn how to create a Messagebox in Windows.

You can create your own messageboxes with the help of Notepad by this vbs trick.

Thursday, 6 February 2014

Useful Online Tools

Hi Friends,

Today I will make you familiarize with some very useful online sites.If you are at Office or at Home, sometimes you may not be able to get the required software for your purpose. Obviously you will be searching the same online. Here are those sites which you require at crucial times.. 

1. PDF to Word                   -
                                           This is a very useful site to convert ;

Wednesday, 5 February 2014

Download YouTube Videos


Here's a very simple trick to download videos from YouTube without any Software Installation.
You can also download videos by using Intenet Download Manager (IDM), but here in this trick , no software is required.

Tuesday, 4 February 2014

Know your Computer's Gender


Want to know whether your computer is Male or Female. Try the below:-


Monday, 3 February 2014

Make Browsing Safe When Using Friend's System or In a Net Cafe


What should you do to make your browsing safer when you are using a friend's system or when you are in a Net Cafe.

How to:
              1. Erase what you searched for?
              2. Keep the history unchanged.
              3. Temporarily disallow saving of Histories, Cookies, url names etc 


All browsers has a concept called Private Browsing which will not save histories, form entries, username, password, cookies and everything you browsed for.So follow the below trick to completely 'undo' what you have searched.

Sunday, 2 February 2014

Calculator Tricks in Windows 7


You may think why I have included a post about calculator in this blog since you all are familiar with this application and its working. But calculator has undergone a complete change in Windows 7. 

If the title of this post hasn't excited you enough, the features we will talk about will!

Open Calculator (Start -> Run -> Type calc ) and look for the below features

Thursday, 30 January 2014

Problem Steps Recorder

Dear Friends,

Problem Steps Recorder (PSR) is a very useful Windows 7 Hidden built-in Tool. It is a combination of Key-logger, Screen Capture and annotation tool for Windows. 

Wednesday, 29 January 2014

Windows Hidden GOD MODE Folder

Dear Friends,

You all know that there is a Control
Panel in Windows to control all the
OS settings.

There is a hidden trick to get a 
centralized Control Panel Folder
(see the image) to access all the Admin options from Desktop.

This is really useful since you can easily select your required settings without any confusion.

To enter this mode, follow the steps

Tuesday, 28 January 2014

How to Find Serial No of a Laptop or Computer

Hello All,

You all know that there is a Serial Number for every Computer.Sometimes you need that number for Technical Support, Office Requirements etc.So in all these cases what you will do, of course you look for the Sticker on the backside of your CPU (See the image above).

In case if that Sticker is lost or the serial number is not visible what will you do?

Don't worry softsprogrammer has got a solution for that!

Monday, 27 January 2014

10 Useful Torrent Sites You May or May Not Know About

Dear Friends,

Most of you are familiar with Torrent.

Here I am gonna give you a list of 10 Torrent Sites you may or may not know. This sites may be useful for your further downloads.

Saturday, 25 January 2014

Download You Tube Video Mp3 Online

Dear Friends,

Here is a trick to download mp3 of any YouTube videos online without installing any Mp3 Convertors.

Friday, 24 January 2014

Find Serial Key of Any Software

Dear All,

Most of you struggles a lot to find Serial Keys for Trial softwares. Today you are gonna learn a Google Trick to find Serial Keys of Any Software very easily.

Thursday, 23 January 2014

Animated Facebook Chat Codes

Dear Friends,

This post will be helpful for your Facebook chat.

Sent Animated Messages to your chat friends and make them surprised :-)

Tuesday, 21 January 2014

Google Tricks Part 2

Hi Friends,

This is the continuation of Google Tricks Part 1.You can find out more tricks on Google from below

  • Type the below keywords in Google and press "I'm Feeling Lucky" button .

Monday, 20 January 2014

Google Tricks Part 1

Hi Friends,

Today I am gonna share you some amazing Google Tricks

Here we go..

Sunday, 19 January 2014

Create a Batch File Timer

Dear Friends,

Here you will learn to create a Batch File Timer.This app can be used as a countdown timer.

Saturday, 18 January 2014

How to Know If Someone Accessed your computer when you are away


When you think that your computer is being used by someone when you are away, Its high time to use this technique to catch the 'hacker' red handed.This technique can be applied for your office PC or Personal one.

You will get notified that who accessed your system, and if required you will get the photo of the unauthorized user too.

Friday, 17 January 2014

Make A Restart Virus

Hello All,

A Restart Virus : You will learn to create this in just 10 secs :-)

See the below steps..

Thursday, 16 January 2014

Play video as ASCII Output in VLC

Dear Friends,

Today you are gonna learn something different!!!

See the above image, a video played in ASCII Characters..Strange is it?

You can easily surprise your friends with this VLC Trick.

Wednesday, 15 January 2014

A simple Bot for Gmail Login

Hi Friends,

Today you are going to learn How to create a Bot for your Gmail Login.

Further on wards,  you can log in to your Gmail Account just by clicking on the this bot.

Tuesday, 14 January 2014

Hide Files Behind an Image

Hi Friends,

Today, you will learn you how to Hide a File Behind an Image.
Suppose you have a confidential file / data to be kept hidden from others, you might be hiding those files by making it 'Hidden'.

Here I am gonna teach you a trick which is more effective than that.You are going to hide your confidential files behind an image and if someone opens the image he will not be able to view the secret file, unless it is open in a certain way.

Monday, 13 January 2014

Run Commands

Hi Friends,

Here I will make you familiar with some of the Run commands.
  •   Press Windows + R to open Run Dialog box or Start -> Run
  •   Now enter the below commands.

Thursday, 9 January 2014

The Flash Mind Reader and its Technique Revealed

Dear Friends,

Today I will make you familiar with a magic application  The Flash Mind Reader.

I assure you that you will be surprised by its "performance".Click on the below link and see your mind is read by a flash application !!!

The Flash Mind Reader

How's It :-)

Really UNBELIEVABLE right?

Now you cannot ignore if I am going to tell you the secret behind it.

Here we Go...

Wednesday, 8 January 2014

Creating a folder named "con' in Windows

Hi Friends,

Have you ever tried to create folders with names given below;

con, prn, nul, com1, com2, lpt1

Is it possible? NO but YES


About Me

I am Tijo Tom, a Computer Engineer from India.Right from my schooling, I had a passion for Programming, PC Tricks, Virus Creation and Hacking.

I started this blog on Jan 1, 2014 to share my views and ideas with the world.

You can know more about me on