Click here to Skip to main content
15,909,242 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionSHDocVw.ShellWindows .Quit does not stop process Pin
SJR_117-Apr-07 2:41
SJR_117-Apr-07 2:41 
AnswerRe: SHDocVw.ShellWindows .Quit does not stop process Pin
Dave Kreskowiak17-Apr-07 6:43
mveDave Kreskowiak17-Apr-07 6:43 
AnswerRe: SHDocVw.ShellWindows .Quit does not stop process Pin
shreekar17-Apr-07 19:09
shreekar17-Apr-07 19:09 
QuestionWScript.CreateObject: Could not locate automation class named "wshAPIToolkitObject.ucATO" Pin
programvinod17-Apr-07 1:19
programvinod17-Apr-07 1:19 
AnswerRe: WScript.CreateObject: Could not locate automation class named "wshAPIToolkitObject.ucATO" Pin
Dave Kreskowiak17-Apr-07 6:46
mveDave Kreskowiak17-Apr-07 6:46 
Questionneed help on database connection! Pin
peteyshrew17-Apr-07 0:42
peteyshrew17-Apr-07 0:42 
AnswerRe: need help on database connection! Pin
ganero17-Apr-07 1:25
ganero17-Apr-07 1:25 
GeneralRe: need help on database connection! Pin
peteyshrew17-Apr-07 1:32
peteyshrew17-Apr-07 1:32 
im using oledb. this is how i've tried to do it. it doesn't come up with any problems but it doesn't work.

Imports System.Data.OleDb
Public Class Cust
Inherits System.Windows.Forms.Form
Dim cn As OleDbConnection
Dim cmd As OleDbCommand
Dim dr As OleDbDataReader
Dim icount As Integer
Dim str As String




Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAdd.Click
Try
cn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=PCBank.mdb;")
cn.Open()
str = "insert into customer (CustomerID, CustomerSurname, CustomerForename) values ('tbID', 'tbSur', 'tbFor')"
'string stores the command and CInt is used to convert number to string
cmd = New OleDbCommand(str, cn)
icount = cmd.ExecuteNonQuery
MessageBox.Show(icount)
'displays number of records inserted
Catch
End Try
cn.Close()
End Sub

End Class
GeneralRe: need help on database connection! Pin
ganero17-Apr-07 1:50
ganero17-Apr-07 1:50 
GeneralRe: need help on database connection! Pin
peteyshrew17-Apr-07 2:05
peteyshrew17-Apr-07 2:05 
GeneralRe: need help on database connection! Pin
Dayekh17-Apr-07 2:40
Dayekh17-Apr-07 2:40 
GeneralRe: need help on database connection! Pin
shreekar17-Apr-07 19:22
shreekar17-Apr-07 19:22 
AnswerRe: need help on database connection! Pin
klaydze17-Apr-07 22:00
klaydze17-Apr-07 22:00 
QuestionAccess Outlook Express through VB.NET Pin
Moin.A17-Apr-07 0:06
Moin.A17-Apr-07 0:06 
AnswerRe: Access Outlook Express through VB.NET Pin
Dave Kreskowiak17-Apr-07 7:38
mveDave Kreskowiak17-Apr-07 7:38 
Questionvalidation of form Pin
kripa2117-Apr-07 0:03
kripa2117-Apr-07 0:03 
AnswerRe: validation of form Pin
CPallini17-Apr-07 1:36
mveCPallini17-Apr-07 1:36 
GeneralRe: validation of form Pin
kripa2117-Apr-07 1:51
kripa2117-Apr-07 1:51 
JokeRe: validation of form Pin
CPallini17-Apr-07 2:07
mveCPallini17-Apr-07 2:07 
QuestionSaving data on a user control that is placed inside a tab control Pin
steve_rm16-Apr-07 23:17
steve_rm16-Apr-07 23:17 
QuestionLooping through tab in a tab control Pin
steve_rm16-Apr-07 20:43
steve_rm16-Apr-07 20:43 
AnswerRe: Looping through tab in a tab control Pin
Werries16-Apr-07 21:48
Werries16-Apr-07 21:48 
AnswerRe: Looping through tab in a tab control Pin
Enriad16-Apr-07 21:50
Enriad16-Apr-07 21:50 
GeneralRe: Looping through tab in a tab control Pin
steve_rm16-Apr-07 22:35
steve_rm16-Apr-07 22:35 
QuestionRemove a Control Array Label Pin
coldude16-Apr-07 20:31
coldude16-Apr-07 20:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.