Visual Basic .
NET Programming
Introduction and Core Concepts
What is [Link]?
High-level language by Microsoft
Part of .NET Framework
Used for Windows, Web & Console apps
Supports Object-Oriented Programming
Features of [Link]
Rich GUI Support
Strongly Typed
Garbage Collection
Exception Handling
Multithreading
Database Connectivity
OOP Concepts
Class -> Object
Encapsulation -> Wrapping Data and Codes-> Restrict Direct Access
Inheritance -> Parent -> Child
Polymorphism -> Many Forms
Abstraction-> Hiding details
[Link] Program Structure
Namespace
Modules & Classes
Methods & Functions
Event Handlers
Hello World Example
Imports System
Module HelloWorld
Sub Main()
[Link]('Hello [Link]')
End Sub
End Module
Windows Forms vs Console
Windows Forms: GUI-based
Console Apps: Text-based
Basic Controls
TextBox
Button
ListBox
ComboBox
Label
Event Handling
Responds to user actions
Example: Button Click Event
Exception Handling
Try...Catch...Finally
Handles runtime errors safely
ByVal vs ByRef
ByVal: Pass by value
ByRef: Pass by reference
Database Connectivity
[Link] -> MS Technology
SqlConnection -> A Bridge for Executing Command
SqlCommand-> Represents a T-SQL
SqlDataAdapter-> Data Provider
DataTable-> is a representation of a single table
SQL Commands
SELECT
INSERT
UPDATE
DELETE