Visual Basic Net Source Code Samples

How to write a visual basic program. Visual Basic programs for beginners with examples. How to print a string in visual basic. below are some examples of visual basic programs.

  1. Visual Basic Net Free Download
  2. Microsoft Visual Basic Net Download

VB.NET again changes the source code behind the scenes. You don’t have to worry about these details — just relax and know that VB.NET knows how to write the code that defines your new DataSet’s schema. In the Properties list of the Tables Collection Editor, click Columns and then click the ellipsis. +1, this used to be a huge problem when Googling for code examples online. Nobody ever specified VB 5/6, or.NET, so it took some time to find the right stuff. – Brad Mar 30 '11 at 17:21. VB.NET Tutorial and source code VB.NET is an update to Visual Basic that targets Microsofts.NET Framework. VB.NET has a lot of similarities to Visual Basic but also some differences. VB.NET is an object-oriented language, which supports the abstraction, encapsulation, inheritance, and polymorphism features. FreeVbCode.Com is a code repository for free Visual Basic code and samples. Visual Basic examples and articles are freely available to download and review. Visual Basic Sample Codes Ebook. Visual Basic Sample Codes E-Book is written by our tutor, Dr.Liew. It comprises 258 pages of captivating contents and 48 fascinating Sample Codes.Perfect source of reference for your VB projects. Check it out by clicking the book picture.

In this tutorial, Will see some basic string operation like how to print string and char in visual basic. Check thevisual basic program for mathematical operations.

Let’s start with the basic “Hello World” Project in Visual basic. Start any programming language with some string operation is a really good idea.

Write a visual basic program to print a string “Hello World”

The below code will print the string value “Hello World”. Console.WriteLine(” “) is used to print any value as an output and the Console.ReadLine() is used to read the next line here we are using it to hold the screen.

Output: Hello World

Visual basic program to print a string variable.

Declare a variable in visual basic is really simple. here in the below code. Dim str As String is a variable decoration. Where str is a variable of string type.

Output: Write First Program in Visual basic

How to Concat two string in Visual basic.

+ or the & operator is used to Concat two or more string in Visual basic. Below is the code to Concat two string in visual basic. Which contains 3 strings str1, str2,str3.

Output: Visual basic program

Please check more examples on visual basic program for beginner

Visual Basic programs with example

Basic Vb programs

Example 2.1.1
Example 2.1.2

You can also use the + or the & operator to join two or more texts (string) together like in example 2.1.4 (a) and (b)

Example 2.1.4(a)

Private Sub

A = “Tom”
B = “likes”
C = “to”
D = “eat”
E = “burger”
Print A + B + C + D + E

End Sub

Example 2.1.4(b)

Private Sub

A = “Tom”
B = “likes”
C = “to”
D = “eat”
E = “burger”
Print A & B & C & D & E

End Sub

Write a VB program to convert Celsius to Fahrenheit

Visual basic dot net

Java Program for Interview with example

Past Year’s Placement papers for Interview of MNC


Windows Presentation Foundation /

3D17AccessText4
Animation75Application10
ApplicationCommands13ArcSegments2
BackgroundWorker2Binding30
BitmapEffect20Border3
Brush21BulletDecorator1
Button57Canvas33
CheckBox6Clip1
CollectionViewSource5Color22
ComboBox8Command11
Common Dialog1ContextMenu1
ControlTemplate9Cursor3
DataContent2DataTemplate5
DockPanel13DoubleAnimation5
DrawingGroup1Ellipse25
Event21EventTrigger15
Expander4FlowDocument37
Font8Frame5
Geometry33Glyphs1
Grid46GridSplitter7
GroupBox2HierarchicalDataTemplate1
Hyperlink2Image24
ImageBrush38InlineUIContainer1
InputGestureCollection1ItemsControl4
IValueConverter3Key Event19
Label6LayoutInformation1
Line11LinearGradientBrush12
ListBox42ListView8
Margin2Matrix10
MediaElement9Menu13
MessageBox5Mouse24
MultiDataTrigger1NavigationWindow1
ObjectDataProvider5ObservableCollection4
Padding2Page9
Panel3PasswordBox1
Path35Polygon13
Polyline13Popup6
Print3ProgressBar6
RadialGradientBrush9RadioButton7
Rectangle27RepeatButton3
Resource34RichTextBox11
RoutedCommand13ScrollBar1
ScrollViewer7Slider9
Span9SpellCheck1
StackPanel18StatusBar7
Storyboard12Stroke23
Style27StyleSelector1
SystemParameters1SystemSounds1
TabControl5TextBlock36
TextBox28Thread16
Timer3ToggleButton2
ToolBar4ToolTip7
Transform21TreeView5
UI Element16UniformGrid3
ValidationRule2Viewbox7
VisualBrush8Window38
WrapPanel6Xaml26
XmlDataProvider3

Data Structure /

Array Multi Dimension14Array Preserve1
Array ReDim3Array Search22
Array Sort17Array41
ArrayList29ArraySegment1
BitArray11CaseInsensitiveComparer1
Collection11CollectionBase2
CollectionsUtil1Column Map1
CompareTo2ConcurrentBag1
ConcurrentQueue1ConcurrentStack1
Connection2Dictionary21
Enumerable13HashSet13
HashTable15HybridDictionary1
IComparable3IComparer2
IConvertible2IDisposable2
IEnumerable3IFormatProvider1
LinkedList6LinkList Yours1
List Yours5List64
ListDictionary4NameObjectCollectionBase8
NameValueCollection5OrderedDictionary2
Queue Yours1Queue12
ReadOnlyCollectionBase3Sort1
SortedDictionary23SortedList38
Stack Yours1Stack6
StringCollection5StringEnumerator1
Tree Yours1

Generics /

Generic Class4Generic Delegate1
Generic Dictionary2Generic Function1
Generic Interface1Generic List2
Generic Tree2

Class /

Abstract Class2Class Define4
Class Type2Clone2
Constructor8Extension1
Hash Code1Inheritance4
Instance Variables1Interface10
Me1Member Function1
Operator Overload1Overload2
Overridable3Override2
Polymorphism2Private2
Property7Protected1
ReadOnly4Shadows1
Shared5ToString3

Database ADO.net /

Access Connection String2Access Data Delete1
Access Data Insert1Access Data Read1
Access Data Update1Access Database2
ADO.net Exception3Alias1
Data Bind to ComboBox1Data Bind to DataGrid3
Data bind to Label1Data bind to ListBox2
Data Bind to TextBox3Data Provider5
Database ListBox2Database ListView3
Database NULL1Database Reader5
Database to SOAP1Database to XML5
Database Utility2DataColumn2
DataGrid6DataSet Read2
DataSet to Binary1DataSet Update4
DataSet XML4DataTable1
DataView1Db21
Encrypt Database Data2Fill DataSet1
Filter1MySQL2
ODBC2OleDb Adapter1
OleDb SQL Server Connection String1OleDb Store Procedure2
OleDb Table Schema2OleDbCommand Parameter 1
OleDbConnection1OleDbDataReader2
OleDbException1Oracle2
OracleConnectionStringBuilder2Scalar Data3
Sql Data Adapter2Sql Data Type3
SQL Server Connection String2Sql Server Store Procedure4
SqlCommand Builder1SqlCommand Create3
SqlCommand Delete2SqlCommand Drop2
SqlCommand Insert4SqlCommand Parameter4
SqlCommand Select6SqlCommand Update2
SqlConnection8SqlDataReader8
Table Column3Table Relation3
Table Schema2Transaction6

File Directory /

Binary File Read8Binary File Write12
CryptoStream1Cypher Decypher File4
DeflateStream2Directory40
DirectoryInfo22Drive10
DriveInfo2File Drag Drop1
File Lock1File Open Mode1
File System Watcher3File System3
File46FileInfo26
FileIOPermission1FileMode1
FileOptions1FileSecurity2
FileStream18FileSystemInfo1
FreeFile1GZipStream3
IsolatedStorageFile1Memory Stream4
Path4Serialize Object7
Serialize to XML2Special Directories7
Stream Action1Stream Reader9
Stream Writer23Stream10
StringReader1StringWriter4
TempFile1Text File Read11
Text File Write14TextReader1

LINQ /

All2AndAlso1
Anonymous Object6Any3
Average3Count6
Distinct5Enumerable1
Except2First4
FirstOrDefault3From4
Func3Group5
Intersect3Lambda5
Let1Max6
Min4Order9
Query19Reverse1
Select27SequenceEqual3
Single1SingleOrDefault1
Skip3SkipWhile1
Sum5Take5
TakeWhile2ToArray1
Union3Where13

GUI /

Action Handler1Anchor2
Background Worker1Button7
CheckBox2CheckBoxList5
ComboBox2Container Control1
Context Menu1Control Inheritance2
Control Owner Draw2Control Subclass2
Control8Cursor3
DataGridView2DataRow1
Date Time Picker3Dialog Color Chooser3
Dialog File Save Open6Dialog Folder Browser3
Dialog Font4Dialog Print2
Dialog Your Own4Dock3
DomainUpDown2Drag Drop9
Drag Move1Error Provider1
Form Event2Form Inheritance2
Form OnPaint4Form Owner1
Form Redraw1Frame Form6
Frame Icon1Frame Special9
GroupBox2GUI Basics1
GUI Event4Helper Provider2
Image List1Label Multiline1
Label5Layout Panel1
Layout3LinkLabel6
ListBox12ListView12
MDI6Menu11
MessageBox4Month Calendar4
MsgBox1Notify Icon Tray2
NumericUpDown3Paint Mode3
Panel3Password1
PictureBox5PopupMenu1
Print Document3Print Preview6
Print Setting6Print Setup Dialog1
Progress Bar3Property Grid2
Radio Button5ReDo UnDo1
Resources5RichTextBox4
Rtf format2Ruler1
Screen Capture2Scrollable Control1
ScrollBar4SDI2
SendKeys1Splash Screen1
Split Container2Status Bar4
System Font5System Icons1
TabControl3TextBox Special2
TextBox Validation4TextBox6
ToolBar2ToolStrip Menu1
Toolstrip4Tooltip1
TrackBar1TreeView9
User Control2

Event /

Focus1Key Action4
Mouse Draw1Mouse Enter Leave1
Mouse Move2
Net

Visual Basic Net Free Download

2D /

Arc3Area Combination5
Arrow1Bezier4
Bitmap5Bmp2
Brush6Clip6
Color6Curve3
Drag Draw1Draw Image3
Draw String7Ellipse2
Fill Mode1Font Metrics1
Font Paint7Gif1
Gradient16Graphic Path10
Graphic State1Graphics Path Iterator1
Hatch Brush3Icon1
Image Animator2Image File1
Image6Interpolation Mode1
JPG1Line Alignment1
Line Compound1Line Dash3
Line Join2Line Smooth Mode1
Line4LineCaps4
Matrix1Paint Size2
Path String1PathGradientBrush1
Pen Alignment2Pen Join1
Pen7Pie2
Ploygon1PNG1
Public2Rectangle4
Region1Rotate3
Scale9Shape1
Shear2Smooth3
Star2String Format Paint8
String Trim Paint1Text Contrast1
Text Layout2Text Rendering Hint2
Texture Brush5Texture4
Tiff1Transform5
Translate2ttf File1
Wmf4

Network Remote /

Dns9Domain Name1
Email1HttpWebRequest3
IP Address9Message Receiver1
Message Sender1Remote asynchronus1
Remote Basics3Remote Factories1
Remote Life Time1Remote Mode2
Remote Object1Remote Soap Server1
SOAP Envelope1SocketAddress1
SocketPermission2TCP Client1
TCP Server3UDP Client14
UDP Server1URI30
UriBuilder5Web Page4
Web Request17WebClient3
WebException1WebHeaderCollection5
WebPermission12WebResponse8

Thread /

Buffer1Lock1
Producer Consumer3Suspend Resume1
Thread Abort1Thread Basics4
Thread DeadLock1Thread Join3
Thread Priority2Thread Resume1
Thread State2Thread Status1
Thread Suspend1Thread Synchronize4
Thread Wait1

XML /

DOM3Namespace4
Read XML File2XML Attribute26
XML Database1XML DataGrid2
XML DataSet3XML File Creation6
XML File Read9XML Node51
XML Schema44XML Serialize5
XML String1XML Transform7
XML Tree5XML Validation8
XmlConvert7XmlDeclaration1
XmlDocument20XmlElement2
XmlImplementation1XmlNode20
XmlProcessingInstruction1XmlQualifiedName1
XmlReader52XmlResolver3
XmlSchemaSet1XmlTextReader18
XmlTextWriter12XmlUrlResolver1
XmlWhitespace1XmlWriter25
XPath7XPathDocument2
XPathNavigator48

XML LINQ /

Aggregate1Descendants5
Namespace1Query15
XAttribute23XComment1
XContainer14XDocument34
XElement64XML Edit23
XML Load11XML Save4
XNamespace26XObject10
XPath7

Security /

AsnEncodedDataCollection1Cryptography6
DESCryptoServiceProvider2MD51
RSAPKCS1SignatureFormatter1Security3
X509Certificate2Collection1

Windows System /

Clipboard9Email Client1
Environment Setting15Event Log2
Excel2Management1
ManagementClass3Memory1
Process16Registry3
System Data Type1System Web Browser1
User3Volumn1
Web Favorite4Window Message2
WndProc1

Application /

Painter1Text Editor2
Web Browser1

Internationalization I18N /

ASCIIEncoding14CultureInfo I18N16
Encoding44NumberFormat3
NumberFormatInfo27NumberStyles11
RegionInfo8UnicodeEncoding7
UTF8 File1UTF8Encoding8

Date Time /

Date Format8Date Operation34
Date Time Format32Date Time Function6
Date Time Parse21Date Time83
DateTimeOffset4TimeSpan17
TimeZone5TimeZoneInfo31

Development /

Application2Assert1
BitConverter30Calendar23
Command Line5Console Format29
Console34Convert to Boolean13
Convert to Byte16Convert to Char11
Convert to Decimal13Convert to Double12
Convert to Int1615Convert to Int3216
Convert to Int6415Convert to SByte14
Convert to Single13Convert to String29
Convert to UInt1617Convert to UInt3215
Convert to UInt6416Convert19
Debug1Decoder4
Environment25Err Number2
Event2Exception Catch6
Exception Message4Exception Stack2
Exception System4Exception Yours4
FormatNumber1Garbage Collection12
GetType5GregorianCalendar9
GUID4Is Value Type1
Late Binding1Math Function41
Object15OperatingSystem3
Password1Random23
Reflection15Regular Expressions52
SecureString1SerialPort7
Sound1String Format5
StringInfo1Symmetric Algorithm1
Timer2Version2

Data Types /

Visual basic net free download
BigInteger103Boolean10
Byte31Char44
Complex53Convert from String38
Data Type Convert22Data Type15
Decimal Format15Decimal Parse4
Decimal36Double Format36
Double Parse8Double26
Enum Format11Enum44
float4Hex9
Integer Format32Integer Parser2
Integer25Long9
NumberStyles3Numeric Format69
Oct1SByte12
Short1Single26
String Compare26String Search13
String Split14String107
Tuple7UInteger1
ULong3UShort1

Language Basics /

Microsoft Visual Basic Net Download

Action2And2
AndAlso2As2
Attribute3Boxing UnBoxing1
ByRef8ByVal9
Cast1Catch Exception3
Character Trmming12Const5
Delegate11Do Until2
Do While5Exit Try1
Exit3Finalize3
Finally2For Each3
For11Function Parameter4
Function Recursive4Function3
Goto4If7
IIf1Is1
Lambda7Macro2
Main Function2Mod2
Not2nullable3
Operator Logic3Or1
OrElse2Overflow1
Select9StringBuilder45
Structure9Throw7
Variable Scope3Variable1
While1With1
Xor2