Enable wrap and change the color of Listbox items

Problem description> You have a Listbox where you have a lot of items which are quite large and won’t fit inside the width of your listbox. You don’t want to enable Horizontal Scroll bar, since you have don’t want your users to keep scrolling left and right in order to view the items. Now if…

12

Change the border color and style of PictureBox in VB.NET

You know that by default you don’t have too many options to change the Border Color/Style of a normal PictureBox control. I wanted to customize this control a little bit, so that you can at least change the border color and style when you click on any image. Let’s see how it looks, and then…

6

How to get the Folder Size in VB.NET

My problem was not really big, but it was a problem which really irritated me a lot!! We store data based on the user’s alias in a folder called D:\SomeFolder on remote machine. In due course of time though, the hard disk starts giving No Disk Space problems, and we need to ask the users…

5

Open EXCEL file with VB6 and read the content

I was planning to write an application today which simply opens an Excel file and read the Cell values into an array so that I could manipulate it accordingly. Since I don’t have VS.NET installed on my home PC, I decided to do it with VB6 :o) Here is the code… Private Sub cmdOpenExcel_Click()On Error…

18

Run a command from the command prompt and get its output in a Windows Application

In this pick, I wanted to show you how to execute commands on the command prompt and get its output in a regular Windows Application. The command in the following code will be entered via a VB.NET Windows application and we will get the output in a Textbox called txtOutput. The command I have used…

6

Load XML file data in a Treeview control in Visual Basic 2005

We have an XML file that needs to be loaded in the TreeView control. This entry shows How do we do it in VB.NET 2005. Let’s create a VB.NET Project. Drag and drop a TreeViewControl and name it tvwMetabase. Also drag a Button control and name it btnLoad. Modify the path of the following code to point to any valid…

6

Find Operating System Information from your VB.NET 2005 application

In VS 2005, it has become really easy to find the Operating System’s information using some of the classes. Let’s take a look at how do we do it in VB 2005…     Sub DisplayOperatingSystemInformation()        Dim osInfo As OperatingSystem        osInfo = Environment.OSVersion        Dim verInfo As Version        verInfo = osInfo.Version        ‘Display Version Information        MessageBox.Show( _        “Major…

12

Copying Winamp’s playlist songs to any other folder for copying to CD etc

Well, to begin with… let me tell you my problem which led me to create this very simple application. Actually, I have quite a lot of songs on my Hard Drives (who doesn’t ;o) ???) and used to create organized playlists for all those songs littered across my hard-drive partitions. Now one fine day, I wanted to copy…

1