Copyright © 2006-2011 MultiMedia Soft

Adding the component to a Visual Studio 2005/2008/2010 project

Previous pageReturn to chapter overviewNext page

Here follow the steps required:

 

Open the project you are working on
If not already visible, open the Toolbox of Visual Studio.NET
Right click the mouse button over the Toolbox surface.
Select the "Choose Items..." menu item; this will open the "Choose Toolbox items" dialog box.
Select the ".NET Framework components" tab
Between the installed components find the component named "Audio Sound Recorder" as displayed below

 

asrecnet_i000062

 

Pressing the "OK" button will bring you again to your project working area and the icon below will appear inside your toolbox

 

asrecnet_i000063

 

Now you can select the control icon inside the toolbox and drag it into the dialog box under editing; the following icon will appear on the dialog box (note that this icon will be invisible at runtime) and one reference to the control will be automatically added to the "References" section of the Project

 

asrecnet_i000064

 

You can now start developing your code around the control as described inside the How to use the control in your projects section

 

 

IMPORTANT NOTE ABOUT THE TARGETED .NET FRAMEWORK INSIDE VISUAL STUDIO 2010

When a new application is created from scratch through the Visual Studio 2010 wizard, by default the targeted .NET framework is set to ".NET framework 4 Client Profile": this version of the .NET framework is a subset of the .NET framework 4 and one of its main limitations is the fact that you cannot reference an assembly that is not in the ".NET Framework 4 Client Profile" so, in order to be able compiling the application referencing one of our components, assuming that the project name is "MyApp", you will have to perform following steps:

Select the "Project/MyApp Properties..." menu item
Inside the "Application" tab, locate the "Target framework" combobox
Set the ".NET framework 4" option in place of the ".NET framework 4 Client Profile" option
Close the properties window
Compile the application