Click here to Skip to main content
15,887,027 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionHow to set FullAccess Permission for my User Using (CASPOL.exe) Pin
Anubhava Dimri14-Jul-09 23:02
Anubhava Dimri14-Jul-09 23:02 
AnswerRe: How to set FullAccess Permission for my User Using (CASPOL.exe) Pin
Christian Graus15-Jul-09 0:48
protectorChristian Graus15-Jul-09 0:48 
AnswerRe: How to set FullAccess Permission for my User Using (CASPOL.exe) Pin
Dave Kreskowiak15-Jul-09 5:08
mveDave Kreskowiak15-Jul-09 5:08 
GeneralRe: How to set FullAccess Permission for my User Using (CASPOL.exe) Pin
Anubhava Dimri15-Jul-09 18:14
Anubhava Dimri15-Jul-09 18:14 
GeneralRe: How to set FullAccess Permission for my User Using (CASPOL.exe) Pin
Dave Kreskowiak16-Jul-09 15:49
mveDave Kreskowiak16-Jul-09 15:49 
QuestionHow to embed a database when making a deployment? [modified] Pin
shellom200514-Jul-09 22:31
shellom200514-Jul-09 22:31 
AnswerRe: How to embed a database when making a deployment? Pin
Dave Kreskowiak15-Jul-09 5:01
mveDave Kreskowiak15-Jul-09 5:01 
GeneralRe: How to embed a database when making a deployment? Pin
shellom200515-Jul-09 5:26
shellom200515-Jul-09 5:26 
thanks for replying, actually, this my code:

Private Sub frmColour_Copy_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

Try
            Dim con =  = New SqlConnection("Data        Source=.\SQLEXPRESS;AttachDbFilename=C:\Users\Selom\Documents\Visual Studio 2005  \Projects\Printing And Copy1\Printing And Copy1\Database1.mdf;Integrated Security=True;User Instance=True")

Dim cmd As New SqlCommand
cmd.Connection = con

cmd.CommandText = "INSERT INTO customer(cust_name, cust_Age) VALUES( '" + strCustName+ "', '" + strCust_Age + "')"

cmd1.ExecuteNonQuery()

 Catch ex As Exception
            MessageBox.Show("Error while inserting record on table..." & ex.Message, "Insert Records")
        Finally
            con.Close()
 End If 


this code works on the pc it's being developed. the only problem is that after building the executable file using the setup Project and installed on the same machine, it displays the following error:
Format of the initialization string does not conform to specification starting ar index 0

thanks in advance for your help!
GeneralRe: How to embed a database when making a deployment? Pin
Dave Kreskowiak15-Jul-09 7:21
mveDave Kreskowiak15-Jul-09 7:21 
GeneralRe: How to embed a database when making a deployment? Pin
shellom200516-Jul-09 12:33
shellom200516-Jul-09 12:33 
GeneralRe: How to embed a database when making a deployment? Pin
Dave Kreskowiak16-Jul-09 15:58
mveDave Kreskowiak16-Jul-09 15:58 
GeneralRe: How to embed a database when making a deployment? Pin
shellom200517-Jul-09 1:01
shellom200517-Jul-09 1:01 
Questionwindows recent documents Pin
wael3314-Jul-09 22:19
wael3314-Jul-09 22:19 
AnswerRe: windows recent documents Pin
Eddy Vluggen14-Jul-09 23:38
professionalEddy Vluggen14-Jul-09 23:38 
AnswerRe: windows recent documents Pin
dan!sh 15-Jul-09 0:40
professional dan!sh 15-Jul-09 0:40 
QuestionVBA and Excel Pin
veon cheng14-Jul-09 20:59
veon cheng14-Jul-09 20:59 
AnswerRe: VBA and Excel Pin
Dalek Dave14-Jul-09 22:24
professionalDalek Dave14-Jul-09 22:24 
GeneralRe: VBA and Excel Pin
veon cheng15-Jul-09 5:26
veon cheng15-Jul-09 5:26 
GeneralRe: VBA and Excel Pin
Dalek Dave15-Jul-09 21:53
professionalDalek Dave15-Jul-09 21:53 
QuestionRegionData.Data Pin
Keith Cudebec14-Jul-09 12:46
Keith Cudebec14-Jul-09 12:46 
AnswerRe: RegionData.Data Pin
Kschuler15-Jul-09 6:28
Kschuler15-Jul-09 6:28 
AnswerRe: RegionData.Data Pin
bcampbel21-Aug-09 4:19
bcampbel21-Aug-09 4:19 
QuestionFind which square user clicked in Isometric Grid? Pin
o m n i14-Jul-09 12:16
o m n i14-Jul-09 12:16 
AnswerRe: Find which square user clicked in Isometric Grid? Pin
Mycroft Holmes14-Jul-09 17:59
professionalMycroft Holmes14-Jul-09 17:59 
GeneralRe: Find which square user clicked in Isometric Grid? Pin
o m n i14-Jul-09 18:01
o m n i14-Jul-09 18:01 

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.