VB.Net - Controls

CrystalReportViewer Example
Date : 05 Feb 2010
Views : 1108

This code snippet shows how to create a report and use the CrystalReportViewer control to load the report.

Drag Drop Image File Onto Form
Date : 04 Feb 2010
Views : 1298

This code snippet shows how to drag and drop an image file onto a form and show the image as the forms background image. The form is also resized based on the image size.

Drag Drop A File Into TextBox
Date : 04 Feb 2010
Views : 1121

This code snippet shows how to drag and drop a file into a textbox and open the file for reading using the StreamReader class.

PrintPreviewControl Example
Date : 04 Feb 2010
Views : 1319

This code snipet shows how to use the PrintPreviewControl and the PrintDocument class.

Semi Transparent Panel
Date : 03 Feb 2010
Views : 1071

This snippet shows how to develop a custom panel which is semi transparent by overriding CreateParams and the OnPaint method of the Panel control.

Simple PrintDocument Example
Date : 02 Feb 2010
Views : 2280

This code snippet shows how to use the PrintDocument class to print documents. It uses the PrintPreviewDialog to show the preview of the document a button to print the docuemnt.

Insert Image Into RichTextBox
Date : 01 Feb 2010
Views : 1273

This snippet inserts an image into a RichTextBox control.

ListView Group Example
Date : 25 Jan 2010
Views : 2084

This code snippet shows how to add items to groups in a listview control. This example shows how to list drives in groups.

Add Items To ListView Using ListViewItem
Date : 25 Jan 2010
Views : 979

This code snippet shows how to add items to a listview control using the ListViewItem class.

CSV To TreeView
Date : 21 Jan 2010
Views : 421

This code snippet shows how to populate a treeview control using a CSV file.

1

New Snippets

Highlight Input Element On Focus Javascript JQuery

This code snippet shows how to highlight an input element when it has focus and remove the highlight when it loses focus.

Calculate Age C# Miscellaneous

This code snippet shows how to calculate an age from a date of birth.

LINQ Example 2 C# LINQ

This linq example shows how to query a List object.

Sliding Tab Control Javascript JQuery

This code snippet shows how to develop a simple tab control, that slides tab pages when you click onto a tab.

LINQ Example 1 C# LINQ

This code snippet uses where to find all elements of an array that is less than 10.

File Exists Visual C++ File Manipulation

This code snippet determines if a file exists.

XML Example 1 Ruby XML

This code snippet shows how to loop through an XML string.

Simple MySQL Class To Query Database Java Database

The following code snippet shows how to create a simple MySql class that can be used to create a connection to the database server and execute queries which return a ResultSet object.

Connect To MySQL Database Java Database

This code snippet shows how to connect to a MySQL database server. You will need to download Connector/j.

File Viewer Example Java Controls

This code snippet shows how to open a file for reading and display the data into a JTextArea component.

JMenu With ActionListener Example Java Controls

This code snippet shows how to add an ActionListener to a JMenu component.

JMenuBar Example Java Controls

This code snippet demonstrates how to use the JMenuBar component and how to add menu items using the JMenu and JMenuItem components.

MD5 Message Digest Example 1 Java Security

This code snippet shows how to use the MessageDigest class to get an instance of the MD5 MessageDigest. This code snippet does not return a 32 character string.

Check If File Is Hidden Java File Manipulation

This code snippet checks if a file is hidden.

Check If File Exists Java File Manipulation

This code snippet checks if a file exists. If it does, it displays its absolute file path.

What Others Are Viewing

Highlight Input Element On Focus Javascript JQuery

This code snippet shows how to highlight an input element when it has focus and remove the highlight when it loses focus.

LINQ Example 2 C# LINQ

This linq example shows how to query a List object.

Sliding Tab Control Javascript JQuery

This code snippet shows how to develop a simple tab control, that slides tab pages when you click onto a tab.

LINQ Example 1 C# LINQ

This code snippet uses where to find all elements of an array that is less than 10.

File Exists Visual C++ File Manipulation

This code snippet determines if a file exists.

Top VB.Net Snippets

This code snippet shows how to use the PrintDocument class to print documents. It uses the PrintPreviewDialog to show the preview of the document a button to print the docuemnt.

This code snippet shows how to add items to groups in a listview control. This example shows how to list drives in groups.

Function with picturebox and url as argument to display the passed url to image inside a picturebox.

This simple snippet shows how to read and write to a MemoryStream() using Binary.

This code snipet shows how to use the PrintPreviewControl and the PrintDocument class.

This code snippet shows how to drag and drop an image file onto a form and show the image as the forms background image. The form is also resized based on the image size.

This snippet inserts an image into a RichTextBox control.

This method takes a label control as its argument and displays the width of the text which is in the label control.

This code snippet gets the properties of the current thread.

This example shows how to calculate the md5 of a given string.