Blog Archives

Visual Studio: Display A File List In A DataGridView Control

This example also shows how to extract an icon image from a file in a windows directory and display the icon in a DataGridView Control.  One advantage of displaying a list of files in the DataGridView Control, is that you

Tagged with: , , , , , , ,
Posted in Visual Studio Code Examples

Reading from a Text File In Visual Studio C#

Create a new Windows Application Add a New form Add a textbox to the form; use the default name for the textbox. Make sure to change the Multiline Property of the textbox to True. After changing the Multiline Property of

Tagged with: , , , , , ,
Posted in Visual Studio Code Examples

Select Case Statement and Switch Statement

Visual Basic and C# Programming Select Case Statement and Switch Statement Select Case Statements and Switch Statements can be used to replace If Then statements in Visual Basic and Visual C#. If you are using more than two If-Then statements,

Tagged with: , , , , ,
Posted in Visual Studio Code Examples