28/12/2014 by Nitesh

How To Delete a File From FTP Server in C#

Friends, In my last post, we saw how can we retrieve the list of all files & folders from a FTP server using C#. In this post, we will see how can we delete a file from FTP server using C# from within your Console or Windows Forms Application. Here’s the code – private string…

Continue Reading »

27/12/2014 by Nitesh

How To List All Files & Directories From a FTP Server in C#

Friends, In this post, we will see how we can retrieve the list of files and directories from a FTP server in C#. We will make use of FtpWebRequest class to perform this action. FtpWebRequest class is defined in System.Net namespace. This means you need to use this namespace at the top of your program…

Continue Reading »

14/10/2014 by Nitesh

How To Add Custom ComboBox Column to DataGridView in Windows Forms

Friends, In this post we will see how can we add a custom ComboBox column to DataGridView in Windows forms. This scenario generally comes when we need to edit a row in the DataGridView and allow users to select value for a cell from a predefined set of values. This post will help you achieve…

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 »

09/06/2014 by Nitesh

How To Perform Drag-Drop Operations on TreeView Control in Windows Forms

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…

Continue Reading »

1 2 3 4 5 6