Symbianize





Programming Discussions related to C++, HTML, PHP, ASP, ColdFusion, JavaScript, Perl, Phyton, Ruby, WML, SQL, XML, and other programming languages.

Reply
  #221  
Old 18th Jun 2012 Mon, 17:00
jake_lyson Male jake_lyson is offline
Professional
 
Join Date: Dec 2009
Posts: 105
Reputation: jake_lyson is an unknown quantity at this point
Default Re: 101 Visual Basic and C# Code Samples for Visual Studio .Net

Sir pano ko po magagawa to gamit ang Data.OLEDB at MS Access ang back end?

Code:
                    myCommand = New SqlCommand("InsertNewUserInfo", ProjectConnection)
                    With myCommand
                        .CommandType = CommandType.StoredProcedure
                        .Parameters.AddWithValue("vUserId", Trim(txtUserID.Text))
                        .Parameters.AddWithValue("vScId", Trim(txtSCID.Text))
                        .Parameters.AddWithValue("vLastName", Trim(txtLname.Text))
                        .Parameters.AddWithValue("vFirstName", Trim(txtFName.Text))
                        .Parameters.AddWithValue("vMI", Trim(txtMI.Text))
                        .Parameters.AddWithValue("vUserLevel", Trim(txtUserLevel.Text))
                        .Parameters.AddWithValue("vPassword", Trim(txtPassword.Text))
                        .Parameters.AddWithValue("vSupervisorLevel", IIf(cboSupervisorLevel.CheckState = CheckState.Checked, 1, 0))
                        .ExecuteNonQuery()
                        MsgBox("User Id " & Trim(txtUserID.Text) & " added successfully.", MsgBoxStyle.Information, "New User Added")
                    End With
                    myCommand.Dispose()



Pahingi ng SIG -=Please=-
Reply With Quote
Other Resources
  #222  
Old 19th Jun 2012 Tue, 17:13
nexysllanes's Avatar
nexysllanes Male nexysllanes is offline
Forum Advisor
 
Join Date: Nov 2010
Location: Caloocan
Posts: 736
Reputation: nexysllanes is an unknown quantity at this point
Default Re: 101 Visual Basic and C# Code Samples for Visual Studio .Net

dito magagamit ko tu next sem hehe



Reply With Quote
  #223  
Old 28th Jun 2012 Thu, 09:19
vespercore02's Avatar
vespercore02 Male vespercore02 is offline
Professional
 
Join Date: Jul 2010
Posts: 163
Reputation: vespercore02 is an unknown quantity at this point
Default Re: 101 Visual Basic and C# Code Samples for Visual Studio .Net

Maraming Salamat po


Reply With Quote
  #224  
Old 30th Jun 2012 Sat, 12:00
Lenece22 Female Lenece22 is offline
Newcomer
 
Join Date: Jun 2012
Posts: 5
Reputation: Lenece22 is an unknown quantity at this point
Default Re: 101 Visual Basic and C# Code Samples for Visual Studio .Net

Hello po .. pa help naman po .. sinu po ung mabait at mag bibigay ng source code sa student information system .. sample lang po ksi wla po akong idea sa gagawin kong programm . sana po matulungan niyo ako . begginer palang po ako .. slamat po ..


Reply With Quote
  #225  
Old 9th Jul 2012 Mon, 14:42
potbulb's Avatar
potbulb Male potbulb is offline
Forum Advisor
 
Join Date: Mar 2012
Location: Sa Puso Mo
Posts: 757
Reputation: potbulb is an unknown quantity at this point
Default Re: 101 Visual Basic and C# Code Samples for Visual Studio .Net

salamat dito sir


Reply With Quote
  #226  
Old 11th Jul 2012 Wed, 17:09
itsmemarjorie Female itsmemarjorie is offline
Newcomer
 
Join Date: Jul 2012
Posts: 7
Reputation: itsmemarjorie is an unknown quantity at this point
Default Re: 101 Visual Basic and C# Code Samples for Visual Studio .Net

Pwede po mag tanong ng inventory code? sa VB6

sa sasagot.



Last edited by itsmemarjorie; 11th Jul 2012 Wed at 17:10..
Reply With Quote
  #227  
Old 12th Jul 2012 Thu, 13:45
wrredraye's Avatar
wrredraye Male wrredraye is offline
Veteran
 
Join Date: Sep 2011
Location: nasa PUSO niya ^_^
Posts: 353
Reputation: wrredraye is an unknown quantity at this point
Default Re: 101 Visual Basic and C# Code Samples for Visual Studio .Net

Quote:
Originally Posted by jake_lyson View Post
Sir pano ko po magagawa to gamit ang Data.OLEDB at MS Access ang back end?

Code:
                    myCommand = New SqlCommand("InsertNewUserInfo", ProjectConnection)
                    With myCommand
                        .CommandType = CommandType.StoredProcedure
                        .Parameters.AddWithValue("vUserId", Trim(txtUserID.Text))
                        .Parameters.AddWithValue("vScId", Trim(txtSCID.Text))
                        .Parameters.AddWithValue("vLastName", Trim(txtLname.Text))
                        .Parameters.AddWithValue("vFirstName", Trim(txtFName.Text))
                        .Parameters.AddWithValue("vMI", Trim(txtMI.Text))
                        .Parameters.AddWithValue("vUserLevel", Trim(txtUserLevel.Text))
                        .Parameters.AddWithValue("vPassword", Trim(txtPassword.Text))
                        .Parameters.AddWithValue("vSupervisorLevel", IIf(cboSupervisorLevel.CheckState = CheckState.Checked, 1, 0))
                        .ExecuteNonQuery()
                        MsgBox("User Id " & Trim(txtUserID.Text) & " added successfully.", MsgBoxStyle.Information, "New User Added")
                    End With
                    myCommand.Dispose()
_____________________________
Oleda.InsertCommand = New OleDbCommand()
Oleda.InsertCommand.CommandText = "INSERT INTO [InsertNewUserInfo] ([vUserID] , [vScId] )" & _
"VALUES (@vUserID , @vScId)"
Oleda.InsertCommand.Connection = Olecn
With Oleda
.InsertCommand.Parameters.Add("@vUserID", OleDbType.VarWChar, 50, "User ID").Value = me.txtID.Text
.InsertCommand.Parameters.Add("@vScId", OleDbType.VarWChar, 50, "vScId").Value = me.txtvScId.Text
MsgBox("User Id " & Trim(txtUserID.Text) & " added successfully.", MsgBoxStyle.Information, "New User Added")
.InsertCommand.ExecuteNonQuery()
End With



Last edited by wrredraye; 12th Jul 2012 Thu at 13:47.. Reason: up
Reply With Quote
  #228  
Old 13th Jul 2012 Fri, 21:50
imvincentocampo's Avatar
imvincentocampo Male imvincentocampo is offline
Inactive
 
Join Date: Nov 2011
Location: Guagua, pampanga
Posts: 215
Reputation: imvincentocampo is an unknown quantity at this point
Default Re: 101 Visual Basic and C# Code Samples for Visual Studio .Net

madownload nga thanks po



Time is Dollar :)
Mga sb share lang po kung gusto niyo extra INCOME pero malaki.. at wala kang ginagawa kung hindi hintayin lang ang oras na dadami ang pera mo..

http://www.justbeenpaid.com/join.cgi...jsstripler5&c=
Just click here

Message niyo sa fb for any concern, i will help you :)
Tutorial for beginner
https://www.facebook.com/JssTriplerConcern
Reply With Quote
  #229  
Old 18th Jul 2012 Wed, 13:48
damnskaterboi's Avatar
damnskaterboi Male damnskaterboi is online now
Professional
 
Join Date: Nov 2011
Posts: 184
Reputation: damnskaterboi is an unknown quantity at this point
Default Re: 101 Visual Basic and C# Code Samples for Visual Studio .Net

tnx po dito pa subscribe din muna dami pa download sa net tnx


Reply With Quote
  #230  
Old 18th Jul 2012 Wed, 20:57
healbuff Male healbuff is offline
Trainee
 
Join Date: Dec 2008
Location: Tagum City
Posts: 21
Reputation: healbuff is an unknown quantity at this point
Default Re: 101 Visual Basic and C# Code Samples for Visual Studio .Net

mga masters,

advisable po ba gumamit ng bindingsource sa mga database application..dati po akong gumagamit ng hard coded db commands, medyo mahirap na kasi pag madami n fields ng tables.. if i may ask, which one would u prefer, hardcode or using bindings & etc..

tnx...sori medyo noob pa po ako..



C++ Builder/Firebird
Reply With Quote
Reply

Thread Tools

Forum Jump


All times are GMT +8. The time now is 13:52.