VB.NET Code Snippet Index

Save, Edit, Delete Data using VB.Net and SQL Server 2000

This code to save, Edit and delete data in VB.Net using SQLServer as backend. this code is continuance from my previous post "Show Data in DataGrid with VB.Net 2003 and SQLServer 2000". so i didn't write code how to connect SQLServer 2000 with VB.Net 2003 cause this already in there. Please see... (Read More)

Keypress event

Dear Sir, I am completely new to VB.NET but i worked in VB6.0 very well. My problem in VB.net is that i need a code through which i can print a message box which will show what key is pressed like control , alt,1,.,2 etc. Please help me. or other way i want to deactivate... (Read More)

Adding multiple pictures from a form to SQL Database in VB.net

I used this code to store convert pictures to "binary" inoreder to save in database but it stores only one picture from two pictureboxes. let someone show me how, you can convert pictuers in two seperate 'picturebox ("picturebox1 and Picturebox2")' using the function in the code snippet on... (Read More)

DataGrid Focus

how to give a focus to datagrid of same row but other column (Read More)

Show Data in DataGrid with VB.Net 2003 and SQLServer 2000

This Code is easy way to load / show data in Datagrid. This Code write in vb.net 2003 and use sqlserver 2000 as database. I use module to connected VB.Net with SqlServer 2000. so the function to connected can be use in every form in this project. (Read More)

Simple Encryption

below is a very simple encryption class which shows how to encrypt sensitive data (very simply) this example converts a string to hexadecimal form and back again with some simple error handling. please leave some feedback if you find this useful (Read More)

Microsoft.Office.Int erop Word/Excel Manipulation

Below is code i wrote as a wrapper for the microsoft office interops. It provides ways to establish the instance of the application and cleanup any remaining office processes after use. Note the class I use is alot bigger but i have added the basics as a starting point. This class is... (Read More)

Adding/Updating Sql Records

With both subs you must enter the values as you would write them into a sql string i.e. 'mustsurroundstrings' I'm rather new at VB.Net and SQL but these work for me and are seem pretty efficient. If anyone has a way to improve on them or finds a flaw in them please feel free to email me ... (Read More)

Calculate Sum of Two Time values

''' <summary> ''' FUNCTION TO CALCULATE SUM OF TWO TIME VALUES ''' PASS TWO DATE VALUES AS STRING ''' </summary> Function GetTimeSum(ByVal dt1 As String, ByVal dt2 As String) As String Dim ReturnStr As String = "" If dt1 = "" And dt2 <> "" Then ... (Read More)

looping

syntax for looping (Read More)

OOLEDB Connection(vb.net & Access)

Connection To Access Database and Save,Retrieve,Update D:\access\try.mdb=The Address of the Access database table 'Try'. Take a module as ModMain(Copy the code) table fields: idno,name,designation.(idno=auto number) textBoxes=TxtName,TxtDesignation And Combobox=CboRetrieve... (Read More)

SQL In VB.NET

Connecting and using SQL in VB.NET (Read More)

Connecting to access database

Code for connecting to Microsoft Access databse, opening and closing connection (Read More)

Placing ComboxBox in DataGrid Cell -Visual Basic .Net Windows Forms

Placing ComboxBox in DataGrid Cell is a task usually found in Invoicing application. Here is my version of same. (Read More)

Creating a Microsoft Office Outlook Appointment using Asp.net

This is a very brief overview of how to achieve an ON-THE-FLY creation of an appointment in the clients outlook calendar. This will not force the user to add it to there calendar but gives them the option to add it automated. Using the older .vcs file extension for outlook we can add an appointment... (Read More)

Forum Tools


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC