btn to top
×
Advertisement
Advertisement
Advertisement

Visual Basic Projects With Source Code Today

Imports System.IO Public Class TodoApp Private tasksFile As String = "tasks.txt"

Visual Basic (VB.NET) often gets a bad rap as a "beginner's toy," but don't let the critics fool you. In the enterprise world, VB.NET is a fully supported, object-oriented language that runs on the powerful .NET framework. It is incredibly efficient for building Windows desktop applications (WinForms), automating Excel, and even creating web apps. visual basic projects with source code

Private Sub LoadData() Dim adapter As New SQLiteDataAdapter("SELECT * FROM Students", conn) Dim table As New DataTable() adapter.Fill(table) DataGridView1.DataSource = table End Sub Imports System

Private Sub btnLoad_Click(sender As Object, e As EventArgs) Handles btnLoad.Click Using folderDialog As New FolderBrowserDialog() If folderDialog.ShowDialog() = DialogResult.OK Then imageFiles = Directory.GetFiles(folderDialog.SelectedPath, "*.*") .Where(Function(f) f.ToLower().EndsWith(".jpg") OrElse f.ToLower().EndsWith(".png") OrElse f.ToLower().EndsWith(".bmp")) .ToArray() currentIndex = 0 ShowImage() End If End Using End Sub VB.NET is a fully supported

If emptyCells.Count > 0 Then Dim rnd As New Random() Dim move = emptyCells(rnd.Next(emptyCells.Count)) MakeMove(move.Item1, move.Item2, "O") End If End Sub

Private Sub btnAdd_Click(sender As Object, e As EventArgs) Handles btnAdd.Click If txtTask.Text.Trim() <> "" Then lstTasks.Items.Add(txtTask.Text) txtTask.Clear() SaveTasks() End If End Sub