Current Category: Examples

TabControl - Select Page by code

Solovb is a site that is characterized by simple examples and simple. Today an example of using TabControl. In more than one occasion I needed to be selected by code pages (TabPage) of the control should be the one show, the solution is simple but perhaps the're ...

Working with Dates

Today I want to tell some things about working with dates, those things that you say ... "But that everybody knows ...", but as this site is dedicated to experts but to help those new to this world of programming visual basic. net, it seems more than appropriate ...

Sorting DataGridView

The columns in the datagridview are, by default, the functionality to sort the records automatically by simply clicking on the header of the column that contains the data for which we want to sort the data. Each column in the DataGridView has a property which can SortMode ...

Validating a DataGridView

This time I show a simple example of validation of data entered in a datagridview. This is a powerful control, very rich, with many configuration options. This validation will monitor the event CellValidating the datagridview. For example we will ...

How to clone a windows form

Can often be a need to do two or more identical or very similar forms. The first thing that comes to mind is to go to Solution Explorer, select a form and Control-C and Control-V to create a new form like the first, but to our surprise ... are ...

Intellisence: "As useful", "As annoying"

When I began using the Visual Studio back in version 1.0 (in 2002 approx.) One of the things I liked was the IntelliSense. Enough to fill in the names of variables, functions, etc.., To suggest the properties and methods of classes and pass review ...

Automatically exports to Microsoft Excel DataTable

Today I want to show an example that has served me for a long time and yet I still use it. We will make an example to export a DataTable to Excel full regardless of the number of columns or rows that have. There may be many ways to do this, but I find it really ...

Listview: Item always visible

Whenever you add new items to a listview control ListViewItems, and these are so numerous that the control does not have enough space to display them on screen, adding a vertical scroll bar. This is perfect, except that by default are not that new items are added. Today ...

Open and close the door of the CD-ROM

Based on this video I saw on the internet today I decided to publish this simple post on how to do, through a program in visual basic. Net, that the door of CD's to open and close. To run the example we just need one form and two buttons (Opening) as ...

Use the colors of your program in Visual Studio

This example arose from a query in this article. The control ColorDialog presents a traditional color palette, but the truth is that visual studio is much nicer and shows all the colors by name as defined in the System.Drawing object properties. Because ...

«Previous Page