15,886,069 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 13847218 (Top 23 by date)
Member 13847218
1-Aug-18 3:18am
View
how do date month year calculate
i think warranty monthily duration
Member 13847218
31-Jul-18 7:45am
View
my project login page username password image login next page..
but this coding error incorrect username password
Member 13847218
30-Jul-18 8:01am
View
this not login
Member 13847218
30-Jul-18 8:00am
View
try
{
if (!(textBox1.Text == string.Empty))
{
//if (!(pictureBox1.Image == string.Empty))
if (!(pictureBox1.Image == null))
{
// this.pictureBox1.Image = null;
}
//FileStream fs = new FileStream(filePath, FileMode.Open, FileAccess.Read);
//this.pictureBox1 = System.Drawing.Image.FromStream(fs);
//if (MemoryStream ms = new MemoryStream();
// pictureBox1.Image.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg);
{
SqlConnection con = new SqlConnection();
con.ConnectionString = "Data Source=DESKTOP-8BEJFRN\\SQLEXPRESS;Initial Catalog=win;Integrated Security=True";
con.Open();
SqlCommand cmd = new SqlCommand("SELECT username,pic FROM pe WHERE username='" + textBox1.Text + "' and pic='" + pictureBox1.Image + "'", con);
SqlDataReader dr = cmd.ExecuteReader();
int count = 0;
while (dr.Read())
{
count = count + 1;
}
if (count == 1)
{
Form fm = new Form1();
fm.Show();
this.Hide();
}
else if (count > 1)
{
MessageBox.Show("Duplicate username and pic", "login form");
}
else
{
MessageBox.Show("user name and pic is incorrect", "login form");
}
}
}
else
{
MessageBox.Show("pic is empty", "login form");
}
}
//else
// MessageBox.Show("user name empty", "login form");
catch (Exception es)
{
MessageBox.Show(es.Message);
}
}
private void button2_Click(object sender, EventArgs e)
{
OpenFileDialog openFileDialog1 = new OpenFileDialog();
openFileDialog1.Filter = "JPG Files(*.jpg)|*.jpg|jpg Files (*.jpg)|*.jpg";
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
string picloc = openFileDialog1.FileName.ToString();
textBox2.Text = picloc;
pictureBox1.ImageLocation = picloc;
}
//public MemoryStream ms { get; set; }
}
}
}
Member 13847218
18-Jul-18 2:44am
View
already male save database
update female
not change female
Member 13847218
18-Jul-18 2:01am
View
only gender error
Member 13847218
18-Jul-18 1:24am
View
string a;
private void button1_Click(object sender, EventArgs e)
{
if (radiomal.Checked)
{
a = radiomal.Text;
}
else
{
a = radiofem.Text;
}
SqlConnection abc = new SqlConnection("Data Source=DESKTOP-8BEJFRN\\SQLEXPRESS;Initial Catalog=assignment1;Integrated Security=True");
abc.Open();
SqlCommand bcd = new SqlCommand("update cust set [Nic No]='" + txtnicn1.Text + "',Name='" + txtnam1.Text + "',Address='" + txtadd.Text + "',[Mobile no]='" + txtcon1.Text + "',gender='"+a+"' where [Custermer Id] ='" + txtcusid1.Text + "'", abc);
bcd.ExecuteNonQuery();
MessageBox.Show("your update ");
error update gender pls help
Member 13847218
16-Jul-18 6:28am
View
my qr code project encode button click texbox value auto save qrcode.
important no open dialog box.. only save auto path
dialog box don't display save auto files c#
Member 13847218
12-Jul-18 0:39am
View
How To Search Values From files(my pc) And Set It Into TextBox In C# encode,decode pls help
Member 13847218
11-Jul-18 3:09am
View
automatically image file save my document
Member 13847218
10-Jul-18 13:35pm
View
Response error
string search = TextBox1.Text; error
Member 13847218
10-Jul-18 0:56am
View
how do student id,name,address encode by input filename student id value save format qrcode than decode search texbox studentid value enter. display value student id ,name, address
c# windows application
Member 13847218
30-Jun-18 8:02am
View
how do c# encode button textbox value file name save ..
example textbox =001 file name 001 save jpeg
decode button search open file textbox value display
Member 13847218
27-Jun-18 1:33am
View
Deleted
private void button4_Click(object sender, EventArgs e)
{
string source = ("Data Source=DESKTOP-8BEJFRN\\SQLEXPRESS;Initial Catalog=mywork;Integrated Security=True");
SqlConnection con = new SqlConnection(source);
con.Open();
MessageBox.Show("Your Search");
string sqlselectquery = "SELECT * from cust WHERE [Nic No]= '" + txtnicn.Text + "'";
SqlCommand cmd = new SqlCommand(sqlselectquery, con);
SqlDataReader dr = cmd.ExecuteReader();
if (dr.Read())
{
txtcuid.Text = (dr["Custermer Id"].ToString());
txtnam.Text = (dr["name"].ToString());
txtad.Text=(dr["Address"].ToString());
txtcontn.Text = (dr["Mobile no"].ToString());
con.Close();
}
{
}
}
how do old rady sql save search button textbox value nic no enter all value display... importance - radiobutton(gender)
Member 13847218
26-Jun-18 12:46pm
View
private void button4_Click(object sender, EventArgs e)
{
string source = ("Data Source=DESKTOP-8BEJFRN\\SQLEXPRESS;Initial Catalog=mywork;Integrated Security=True");
SqlConnection con = new SqlConnection(source);
con.Open();
MessageBox.Show("Your Search");
string sqlselectquery = "SELECT * from cust WHERE [Nic No]= '" + txtnicn.Text + "'";
SqlCommand cmd = new SqlCommand(sqlselectquery, con);
SqlDataReader dr = cmd.ExecuteReader();
if (dr.Read())
{
txtcuid.Text = (dr["Custermer Id"].ToString());
txtnam.Text = (dr["name"].ToString());
txtad.Text=(dr["Address"].ToString());
txtcontn.Text = (dr["Mobile no"].ToString());
con.Close();
}
{
}
}
how do old rady sql save search button textbox value nic no enter all value display... importance - radiobutton(gender)
Member 13847218
26-Jun-18 12:10pm
View
Deleted
private void button4_Click(object sender, EventArgs e)
{
string source = ("Data Source=DESKTOP-8BEJFRN\\SQLEXPRESS;Initial Catalog=sale;Integrated Security=True");
SqlConnection con = new SqlConnection(source);
con.Open();
MessageBox.Show("Your Search");
string sqlselectquery = "SELECT * from mywork WHERE [Nic No]= '" + txtnicn.Text + "'";
SqlCommand cmd = new SqlCommand(sqlselectquery, con);
SqlDataReader dr = cmd.ExecuteReader();
if (dr.Read())
{
txtcuid.Text = (dr["Custermer Id"].ToString());
txtnam.Text = (dr["name"].ToString());
txtad.Text=(dr["Address"].ToString());
txtcontn.Text = (dr["Mobile no"].ToString());
con.Close();
}
{
}
}
how do radiobutton(gender) search
Member 13847218
26-Jun-18 6:29am
View
insert customer id,nic no,name,address,contact no,gender windows application c# save sql than how do sql database search button insert value display customer id,nic no,name,address,contact no,gender
important gender (radio button)
my coding SqlConnection abc = new SqlConnection("");
abc.Open();
SqlCommand bcd = new SqlCommand("insert into md values ('" + txtcusid1.Text + "','" + txtnicn1.Text + "','" + txtnam1.Text + "','" + txtadd.Text + "','" + txtcon1.Text + "','"+gender+"')", abc);
bcd.ExecuteNonQuery();
Member 13847218
20-Jun-18 5:09am
View
how do insert windows application c# text box values same value no save sql
Member 13847218
13-Jun-18 12:21pm
View
Deleted
my project qrcode encode ,decode
Prop prop = new Prop()
encode AdmissionYear=dateTimePicker1.Value.ToString(),
Prop prop = Newtonsoft.Json.JsonConvert.DeserializeObject<prop>(qrString);
decode ??????
example txtind.Text = prop.IndexNo;
Member 13847218
13-Jun-18 12:08pm
View
Error 1 Cannot implicitly convert type 'string' to 'System.Windows.Forms.DateTimePicker'
pls solution
Member 13847218
13-Jun-18 11:50am
View
ok pls how do work coding send decod dateTimePicker
Member 13847218
13-Jun-18 10:32am
View
how do decode datetimepicker c#
Member 13847218
28-May-18 3:07am
View
how do qr code encode to decode textbox1,textboxt2 enter text.
example student registeration
name, address
Show More