Click here to Skip to main content

Visual Basic

 
SuggestionRe: PLZ any one tell me the program to open an exe file with parallel port using visual basic PinmvpRichard MacCutchan26-Jan-13 2:25 
Questiondeveloping an software Pinmemberliltil1024-Jan-13 2:28 
AnswerRe: developing an software PinmvpRichard MacCutchan24-Jan-13 2:52 
AnswerRe: developing an software PinmvpDave Kreskowiak24-Jan-13 4:38 
Questioninsert data in single column of table in database fom difftern txtbox Pinmembersupriya93123-Jan-13 20:48 
QuestionRe: insert data in single column of table in database fom difftern txtbox PinmvpEddy Vluggen24-Jan-13 1:49 
AnswerRe: insert data in single column of table in database fom difftern txtbox PinmvpAbhinav S24-Jan-13 2:19 
AnswerRe: insert data in single column of table in database fom difftern txtbox Pinmemberujju.129-Jan-13 21:21 
try this:
Private Sub insertData()
	Try
		Dim con As SqlConnection = Nothing
		Dim cmd As SqlCommand = Nothing
		con = New SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings("inline").ConnectionString)
		con.Open()
		cmd = New SqlCommand("insert into table_name(column_Name) values ('" + TextBox1.Text + "," + TextBox2.Text + "')", con)
		cmd.ExecuteNonQuery()
		con.Close()
 
		lblMsg.Text = "Saved Successfully"
	Catch ex As Exception
		lblMsg.Text = ex.Message
	End Try
End Sub

QuestionEvents PinmemberMember 962135423-Jan-13 19:02 
AnswerRe: Events PinmvpRichard MacCutchan24-Jan-13 0:12 
AnswerRe: Events Pinmember ProgramFOX26-Jan-13 4:52 
QuestionText Box PinmemberMember 962135423-Jan-13 18:56 
AnswerRe: Text Box PinmvpEddy Vluggen24-Jan-13 1:48 
AnswerRe: Text Box PinmemberRichard Deeming24-Jan-13 2:42 
QuestionMasked Textbox PinmemberMember 962135423-Jan-13 18:50 
AnswerRe: Masked Textbox PinmvpRichard MacCutchan24-Jan-13 0:09 
QuestionVb 6.0 youtube video downloader PinmemberNassimch23-Jan-13 9:24 
AnswerRe: Vb 6.0 youtube video downloader PinmvpDave Kreskowiak23-Jan-13 12:17 
QuestionHow to convert vb.net application to work online Pinmembernapolewn22-Jan-13 1:54 
AnswerRe: How to convert vb.net application to work online PinmemberDavid Mujica22-Jan-13 4:03 
QuestionHow to Extend the InitializeComponents to my code in VB2008/2010 PinmemberQuickBooksDev20-Jan-13 4:06 
AnswerRe: How to Extend the InitializeComponents to my code in VB2008/2010 PinmvpEddy Vluggen21-Jan-13 4:31 
GeneralRe: How to Extend the InitializeComponents to my code in VB2008/2010 PinmemberQuickBooksDev21-Jan-13 6:28 
GeneralRe: How to Extend the InitializeComponents to my code in VB2008/2010 PinmvpEddy Vluggen21-Jan-13 6:43 
GeneralRe: How to Extend the InitializeComponents to my code in VB2008/2010 PinmemberQuickBooksDev21-Jan-13 7:49 

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

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


Advertise | Privacy | Mobile
Web03 | 2.8.150123.1 | Last Updated 24 Jan 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid