05/12/2014 by Nitesh

How To Get Access to Front & Back Camera in Windows 8.1 Store App

Friends, In this post, we will see how can we get access specifically to Front camera/Back camera in our Windows 8/8.1 Store App. To get the access, we will use DeviceInformation class defined in Windows.Devices.Enumeration namespace. Below is the code snippet for the same – DeviceInformationCollection webcamList = await DeviceInformation.FindAllAsync(DeviceClass.VideoCapture); DeviceInformation frontWebcam = (from webcam…

Continue Reading »

30/09/2014 by Nitesh

How To List The Name of Current Active Window in C#

Friends, In this post, we will see how can we get the name of currently active window using C#. Since a .Net application cannot access objects outside the application, to get the active window we will use few functions of Windows API provided by Microsoft. We will specifically use GetForegroundWindow() and GetWindowText() functions to implement…

Continue Reading »

29/09/2014 by Nitesh

How To List the Name of all Running Processes in C#

Friends, In this post, we will see how we can print the list of all running processes on a machine using C#. To list all the processes, we will use one of the namespaces provided by Microsoft known as System.Diagnostics. As per MSDN, this namespace provides classes that allow you to interact with system processes,…

Continue Reading »

13/09/2014 by Nitesh

How To Copy Records from One DataTable to Another Datatable

Friends, There are certain scenarios where you have data in 2 different data tables and you want to merge the data of these data tables into one of them. In this post, we will see how this can be achieved using C# in very simple steps. The post assumes that the number of columns are…

Continue Reading »

06/06/2014 by Nitesh

How To Find Controls present in HeaderTemplate or FooterTemplate of Repeater Control in ASP.Net

Friends, While working with Repeater controls we all have used the ItemDataBound event to apply changes to specific records based on the data present in the record. Many of times we have used FindControl() event to do so. In this post, we will see how can we find a control present in the HeaderTemplate or…

Continue Reading »

1 2 3 4