Visual Basic Projects With Source Code -

vb Copy Code Copied Imports System.Net Public Class WeatherForecast

vb Copy Code Copied Imports System.Collections.Generic Public Class ToDoListPrivate tasks As New List(Of String) visual basic projects with source code

Private Sub btn1_Click(sender As Object, e As EventArgs) Handles btn1.Click If btn1.Text = "" Then btn1.Text = playerTurn CheckWin() playerTurn = If(playerTurn = "X", "O", "X") End If End Sub Private Sub CheckWin() If btn1.Text = btn2.Text AndAlso btn2.Text = btn3.Text AndAlso btn1.Text <> "" Then MessageBox.Show("Player " & btn1.Text & " wins!") ElseIf btn4.Text = btn5.Text AndAlso btn5.Text = btn6.Text AndAlso btn4.Text <> "" Then MessageBox.Show("Player " & btn4.Text & " wins!") ElseIf btn7.Text = btn8.Text AndAlso btn8.Text = btn9.Text AndAlso btn7.Text <> "" Then MessageBox.Show("Player " & btn7.Text & " wins!") End If End Sub End Class Create a simple Database Management System that allows users to add, remove, and update records. vb Copy Code Copied Imports System

Private Sub btnAdd_Click(sender As Object, e As EventArgs) Handles btnAdd.Click tasks.Add(txtTask.Text) lstTasks.Items.Add(txtTask.Text) txtTask.Clear() End Sub Private Sub btnRemove_Click(sender As Object, e As EventArgs) Handles btnRemove.Click If lstTasks.SelectedItem IsNot Nothing Then tasks.Remove(lstTasks.SelectedItem.ToString()) lstTasks.Items.Remove(lstTasks.SelectedItem) End If End Sub Private Sub btnComplete_Click(sender As Object, e As EventArgs) Handles btnComplete.Click If lstTasks.SelectedItem IsNot Nothing Then Dim task As String = lstTasks.SelectedItem.ToString() tasks.Remove(task) lstTasks.Items.Remove(task) lstCompleted.Items.Add(task) End If End Sub End Class Create a Weather Forecast app that displays the current weather and forecast for a given location. &ldquo;`vb Imports System

vb Copy Code Copied Public Class TicTacToe Private playerTurn As String = “X”

Here are some Visual Basic projects with source code that you can use to learn and practice: Create a simple To-Do List app that allows users to add, remove, and mark tasks as completed.

“`vb Imports System.Data.Ole