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 …
Read more

c-sharp-tips-tricks

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, …
Read more

asp-net-tips-tricks

Friends, While working with GridView, I faced an issue while binding the data to GridView. The error message read as “The data source does not support server-side data paging.“. Initially I thought this was related to paging functionality of the GridView and looked into that, but thatw as not the solution. After doing bit of …
Read more

bluetooth

Friends, I use a Windows Phone 8.1 and recently I needed to transfer some files to my Laptop running Windows 8.1 using Bluetooth. I started Bluetooth in my laptop but I could not see a direct menu item to receive files from my phone. When I tried sending files from my phone, it said “The …
Read more

c-sharp-tips-tricks

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 …
Read more

asp-net-tips-tricks

Friends, GridView is one of the most common tools for displaying data in a grid format in Asp.Net. When the data becomes large, paging helps the users to view chunks of data and also increases Page load time. In this post, we will see how can we implement Paging in a GridView control. So, lets …
Read more

dot-net-tips-tricks1

Friends, Creating Word documents using .Net is always one of the tedious tasks. Today, in this post, we will see how can we create word documents using Spire.Doc library with ease. You can download the Spire.Doc library from here. Spire.Doc is present in Community as well as Commercial edition. You can use the community edition …
Read more

sql-server-tips-tricks

Friends, In almost all application we use Country field in the database to store the Country of a user/entity. For this, we either use a text box where user enters the country name or provide user with a drop down list of all countries. to create the dropdown, it is advised to store country names …
Read more

wordpress-tips-tricks

Friends, In our last post, we saw how can we get all posts from a specific custom post type in WordPress. This post explains how can you get all posts form multiple post types in WordPress. Let us assume, we have 3 different post types named “cats”,”dogs’ and “rats” and we want to display all …
Read more

c-sharp-tips-tricks

Friends, Drag/Drop functionality is a ease to end user in each and every technology and almost every user is comfortable using the drag-drop feature. In this post we will see how to perform drag and drop operation of nodes in a single TreeView control. There are few events that we will be working with. They …
Read more

Support us!

If you like this site please help and make click on any of these buttons!

×