I am using vb .net 2003 and sql 2000,and I am trying to create a database using textboxes to name them and I keep getting syntax errors with this code.
Dim cmd As New SqlCommand(strSQL, cn)
Dim res As String
res = TB1.Text
Dim strSQL As String = _
It was copied from the ide but the code is right in the editor.
I don`t know what happened to it here.
The full msg is:An unhandled exception of type 'System.ArgumentException' occurred in system.windows.forms.dll
Additional information: Invalid parameter used.
When I step into the debugger I...
Can anyone tell me what causes this to throw an exception:'System.ArgumentException`
Public Class Form1
#Region " Windows Form Designer generated code "
Public Sub New()
'This call is required by the Windows Form...