15,905,414 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 Mohammed Ahmed Gouda (Top 50 by date)
Mohammed Ahmed Gouda
30-May-11 6:18am
View
public class subString {
public void checkSubString(String smallString, String bigString)
{
int start;
boolean flag =false;
for (int i = 0; i < 19; i++) {
start=i;
for (int j= 0; j < 3; j++) {
if(smallString.charAt(start)==bigString.charAt(j))
{
flag=true;
}
}
if(flag)
{
System.out.println("( "+smallString+" is subString from " + bigString + ")");
break;
}
}
}
}
this is the right solution or not ??
Mohammed Ahmed Gouda
17-May-11 5:54am
View
which database engine to use with windows mobile 5 or higher
Mohammed Ahmed Gouda
17-May-11 5:45am
View
this is sqlce not normal sql
Mohammed Ahmed Gouda
11-May-11 7:46am
View
thx so much :) finally solved
Mohammed Ahmed Gouda
11-May-11 7:38am
View
it returns result :)
Mohammed Ahmed Gouda
11-May-11 7:27am
View
okay but when i check if reader.read()==true it gives false and execute else statement
Mohammed Ahmed Gouda
11-May-11 7:24am
View
i changed it to sql2 do i have to make it cmd2 or not and it always gives me reader.read() false not true
Mohammed Ahmed Gouda
11-May-11 7:22am
View
??
Mohammed Ahmed Gouda
11-May-11 7:12am
View
same result
Mohammed Ahmed Gouda
11-May-11 7:04am
View
okay :)
Mohammed Ahmed Gouda
2-May-11 7:47am
View
i dont understand
Mohammed Ahmed Gouda
2-May-11 7:17am
View
no i am just trying to improve myself
Mohammed Ahmed Gouda
2-May-11 5:24am
View
* * * * *
* * * *
* * *
* *
*
Mohammed Ahmed Gouda
21-Apr-11 9:30am
View
thx a lot original and i am not storing password in database i am just trin ideas :)
Mohammed Ahmed Gouda
21-Apr-11 9:15am
View
sql = "select amount from data where password='" + txtpassword.Text + "'";
cmd = new SqlCommand(sql, con);
if (rdbAdd.Checked == true)
{
if (txtpassword.Text.Length == 7)
{
con.Open();
SqlDataReader reader = cmd.ExecuteReader();
try
{
reader.Read();
amount=(int)reader["Amount"];
Mohammed Ahmed Gouda
21-Apr-11 9:01am
View
this is the error : Invalid attempt to read when no data is present.
Mohammed Ahmed Gouda
21-Apr-11 8:59am
View
i know i changed it :)
Mohammed Ahmed Gouda
21-Apr-11 8:50am
View
it gives me error cause there is no data in table how can i avoid this error ?
Mohammed Ahmed Gouda
20-Apr-11 5:58am
View
how?
Mohammed Ahmed Gouda
20-Apr-11 5:43am
View
it didnt work also may be i wrote the code in wrong place
Mohammed Ahmed Gouda
20-Apr-11 5:42am
View
the cursor remains after the string
Mohammed Ahmed Gouda
20-Apr-11 5:41am
View
the code :
private void textBox1_TextChanged(object sender, EventArgs e)
{
string sql = "insert into items values('" + textBox1.Text + "')";
cmd = new SqlCommand(sql, con);
if (textBox1.Text.Length > 7)
{
textBox1.Text=textBox1.Text.Remove(0, 7);
if (textBox1.Text.Length == 7)
{
try
{
con.Open();
cmd.ExecuteNonQuery();
}
catch (SqlException ex)
{
MessageBox.Show(ex.ToString());
}
con.Close();
textBox1.SelectionStart = 0;
textBox1.ScrollToCaret();
}
}
Mohammed Ahmed Gouda
20-Apr-11 5:38am
View
the curosr didnt return to the start of textbox
Mohammed Ahmed Gouda
20-Apr-11 5:32am
View
it didnt work
Mohammed Ahmed Gouda
20-Apr-11 5:31am
View
it didnt work
Mohammed Ahmed Gouda
20-Apr-11 4:16am
View
no i want when the 8th char enter the text box i will take the first 7 char into DB
Mohammed Ahmed Gouda
20-Apr-11 4:08am
View
no i didnt delete any of my questions
Mohammed Ahmed Gouda
19-Apr-11 5:11am
View
I WANT TO MAKE BOOLEAN IF TEXT CHANGED BOOLEAN WILL BE TRUE IF NOT IT WILL REMAIN FALSE THIS WHAT I MEAN
Mohammed Ahmed Gouda
19-Apr-11 4:03am
View
okay and am sorry my english is bad :)
Mohammed Ahmed Gouda
18-Apr-11 6:53am
View
text box are not empty , no exception appears , data types are (nvarchar(50),nvarchar(50)and int)
Mohammed Ahmed Gouda
18-Apr-11 6:49am
View
i used ExecuteNonQuery but nothing happens
Mohammed Ahmed Gouda
18-Apr-11 6:44am
View
when i am running the sql server management studio i have to run it as administrator
Mohammed Ahmed Gouda
18-Apr-11 6:34am
View
i used it but nothing happens also :D
Mohammed Ahmed Gouda
15-Apr-11 12:56pm
View
thx a lot
Mohammed Ahmed Gouda
14-Apr-11 10:36am
View
but i doesnt send a special character after reading barcode
Mohammed Ahmed Gouda
14-Apr-11 8:02am
View
scanner is motorola ds4208
Mohammed Ahmed Gouda
14-Apr-11 6:37am
View
how can i configure it using code or it is within its configuration
Mohammed Ahmed Gouda
12-Apr-11 8:06am
View
yeah it works put how can i make it lose focus automatically not manual.sorry i know am annoying but i am using this textbox with scanner so i want it after reading each string to put it in DB.
Mohammed Ahmed Gouda
12-Apr-11 7:51am
View
how ? sorry i am an amatuer
Mohammed Ahmed Gouda
12-Apr-11 7:02am
View
i am sorry
Mohammed Ahmed Gouda
12-Apr-11 5:46am
View
what about make a delay between each event ??
Mohammed Ahmed Gouda
12-Apr-11 3:39am
View
sorry for the late this is the link http://www.motorola.com/Business/US-EN/Business+Product+and+Services/Bar+Code+Scanning/Bar+Code+Scanners/General+Purpose+Scanners/DS4208
Mohammed Ahmed Gouda
11-Apr-11 9:07am
View
no it doesnt send an EOL
Mohammed Ahmed Gouda
11-Apr-11 8:54am
View
Deleted
no it doesnt send an EOL
Mohammed Ahmed Gouda
11-Apr-11 8:49am
View
it is like u r writing in text box each time u write a new letter u want the old one to be deleted but this time with barcodes . sorry i konw i am annoying
Mohammed Ahmed Gouda
11-Apr-11 8:48am
View
i want if i scanned more than one item with different barcode barcodes appears in textbox and dont want to add them together
Mohammed Ahmed Gouda
11-Apr-11 8:46am
View
i just click scanner button and the barcode appears in the text box
Mohammed Ahmed Gouda
11-Apr-11 8:19am
View
it work but it just take the first number from the barcode and add it to DB
Mohammed Ahmed Gouda
11-Apr-11 7:53am
View
sorry but can u help me with the code coz i am an amatuer with programming ?
Mohammed Ahmed Gouda
11-Apr-11 5:19am
View
i want to extract data from barcode and show it on a richtext
Show More