Archives

Create Database and Tables in SQL Server using VB.Net

Option Strict Off Option Explicit On Friend Class frmSQL Inherits System.Windows.Forms.Form #Region “Windows Form Designer generated code ” Public Sub New() MyBase.New() If m_vb6FormDefInstance Is Nothing Then If m_InitializingDefInstance Then m_vb6FormDefInstance = Me Else Try ‘For the start-up form, the first instance created is the default instance. If System.Reflection.Assembly.GetExecutingAssembly.EntryPoint.DeclaringType Is Me.GetType Then m_vb6FormDefInstance = Me […]

Rate this:

Read More

Storing images as BLOB in db in VB.Net

Private Sub UploadedFiles_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles UploadedFiles.DoubleClick ‘ ‘ Downloads the selected file and displays it in the picture box. ‘ ‘ ‘ Finds the unique id of the file. ‘ Dim drv As DataRowView = CType(UploadedFiles.SelectedItem, DataRowView) Dim selectedText As String = drv.Row(“Name”).ToString() Dim id As Long=-1 ‘ ‘ […]

Rate this:

Read More