Monday, 20 February 2012

PictureBox in VB.NET



The Windows Forms PictureBox control is used to display images in bitmap, GIF,icon, or JPEG formats.
You can set the Image property to the Image you want to display, either at design time or at run time. You can programmatically change the image displayed in a picture box, which is particularly useful when you use a single form to display different pieces of information.

Random Generator in VB.NET


In some situations we have to generate Random numbers in our VB.NET applications for different purposes. In these situations we have to use Random Class for generating the Random numbers. The Random Class in VB.NET

VB.NET Option Explicit [On | Off]



Option Explicit statement ensures whether the compiler requires all variables to be explicitly declared or not before it use in the program.
Option Explicit [On Off]

On Error GoTo in VB.NET


On Error GoTo statements is an example of Vb.Net's Unstructured Exception Handling . VB.NET has two types of Exception handling . Structured Error Handling and Unstructured Error handling . VB.NET using Try..Catch statement for Structured Error handling and On Error GoTo statement is using for Unstructured Error handling.

Difference between Abstract class and Interface in C# .Net



What is an Abstract Class?

An abstract class is a special kind of class that cannot be instantiated. So the question is why we need a class that cannot be instantiated? An abstract class is only to be