15,911,531 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 11160992 (Top 9 by date)
Member 11160992
26-Mar-15 3:25am
View
A million thanks to Original Griff, i didn't even think about reserved word. Thanks again sir.
Member 11160992
26-Mar-15 3:21am
View
Nope, checked everything, but exhausted however the same syntax for updating password is working fine. Below is the syntax
//int number = int.Parse(comboBox1.Text);
OleDbConnection oleDbConnection = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=users.mdb;Persist Security Info=False");
OleDbCommand update = new OleDbCommand("UPDATE users SET pass = '" + textBox36.Text + "' where code = 1", oleDbConnection);
oleDbConnection.Open();
update.ExecuteNonQuery();
oleDbConnection.Close();
Member 11160992
26-Mar-15 3:19am
View
Deleted
Nope, checked everything, but exhausted however the same syntax for updating password is working fine. Below is the syntax
//int number = int.Parse(comboBox1.Text);
OleDbConnection oleDbConnection = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=users.mdb;Persist Security Info=False");
//OleDbCommand update = new OleDbCommand("UPDATE user_details SET first_name,last_name,course_name,DOJ,father_name,reg_fees='" + textBox1.Text + "','" + textBox4.Text + "','" + textBox8.Text + "','" + textBox7.Text + "','" + textBox2.Text + "','" + textBox3.Text + "' where code = " + number + "", oleDbConnection);
OleDbCommand update = new OleDbCommand("UPDATE users SET pass = '" + textBox36.Text + "' where code = 1", oleDbConnection);
oleDbConnection.Open();
update.ExecuteNonQuery();
oleDbConnection.Close();
MessageBox.Show("Updated the password Successfully", "Update Password", MessageBoxButtons.OK, MessageBoxIcon.Information);
Member 11160992
26-Mar-15 2:58am
View
Hi, thanks for reply. No special characters are there. I am passing as simple as abc
Member 11160992
14-Mar-15 5:31am
View
this.listbox1.ColumnCount=3
I can find "coulmn width" property but cannot find "Column count" property. When I am trying to add it programmatically, its giving me error.
Member 11160992
14-Mar-15 5:03am
View
Thanks man! Do you know how to define "how many columns am I going to have" ? I found the below syntax but it's not working.
THISFORM.lst1.ColumnCount = 3
I am using visual studio 2005
Member 11160992
18-Oct-14 3:43am
View
Yeah!! i checked that and found it useful. I will try to convert my code to avoid SQL injections. Thanks again.
Member 11160992
18-Oct-14 1:43am
View
Thanks NaibedyaKar (Mindfire) for this quick solution. @Ryan Since i am not aware of sql injection, i am Ok with this code until i get any problem. I tried this code and it worked well. Thanks again my friends.
Member 11160992
17-Oct-14 8:12am
View
Please assist me.
Show More