15,889,216 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 Boopalslm (Top 169 by date)
Boopalslm
5-May-23 12:05pm
View
DATE BillNo CSTNAME
01-04-23 0:00 2023-24/k-001 MARIMUTHU RANGASAMY
03-04-23 0:00 2023-24/k-002 MARIMUTHU RANGASAMY
10-04-23 0:00 2023-24/k-003 MARIMUTHU RANGASAMY
Sir i need this type of out put
Boopalslm
30-Dec-22 12:04pm
View
It is working fine. Thanks a lot.
Boopalslm
20-May-20 7:21am
View
where i am used your query, please combine above your query with my below query
SELECT cd.loandate, cd.cstname, cd.loanamt,
cb.cstname, cb.loanslno, cb.loanamt, cb.billdate, cb.totdueamt
FROM cstdetails cd
LEFT JOIN cstduebill cb ON cd.cstname = cb.cstname
WHERE rectno IN(
SELECT max(rectno)
FROM cstduebill
WHERE billdate between '2020-05-20' and '2020-05-20'
GROUP BY loanslno)
AND billdate between '2020-05-20' and '2020-05-20'
ORDER BY loanslno
Boopalslm
20-May-20 7:12am
View
Sir but how to get as on date cstdetails report
Boopalslm
20-May-20 6:52am
View
Yes, I am using this query already, but how to get as on date
Cstdetails
Boopalslm
16-May-20 5:14am
View
yes sir, i want above your details, i will try my DB.
Boopalslm
16-May-20 4:48am
View
I am use this query already, but I want I am entered ID no -1 10 bills and ID no-2 entered 8 bills
Here I want how to get 1st id last record(10th Bill), and 2nd id –last record(8th Bill), give me some suggestion.
Boopalslm
17-Apr-20 7:27am
View
I am use this below code, i am click a button all records are display in my data grid view,
SqlConnection con=new SqlConnection(db.Connectionstring());
DataSet ds = new DataSet();
try
{
con.Open();
SqlCommand cmd = new SqlCommand("SELECT * FROM sales where cstname='"+txtFind.Text+"'", con);
SqlDataAdapter da = new SqlDataAdapter();
da.SelectCommand = cmd;
da.Fill(ds);
dataGridView1.DataSource = ds.Tables[0];
dataGridView1.DataMember = "sales";
}
catch (Exception ex)
{
//Exception Message
}
finally
{
con.Close();
con.Dispose();
}
how to solve this problem.
Boopalslm
28-Jun-19 12:33pm
View
i am using TVS Thermal printer - please suggestion some better font
Boopalslm
11-Jul-18 11:39am
View
This is my code, i am write this code my 2nd comboBox SelectedIndexChanged Event
SqlConnection con1 = new SqlConnection(db.Connectionstring());
con1.Open();
using (SqlCommand cmd1 = new SqlCommand("select * from pardetails where parname='" + comcredeb.Text + "'", con1))
{
using (SqlDataReader dr1= cmd1.ExecuteReader())
{
cmd1.CommandType = CommandType.Text;
using (SqlDataAdapter sda = new SqlDataAdapter(cmd1))
{
using (DataSet ds1 = new DataSet())
{
if (dr1.HasRows)
{
bool Empty = true;
foreach (DataGridViewRow row in dataGridView1.Rows)
{
for (int i = 0; i < dataGridView1.Rows.Count; i++)
{
while (dr1.Read())
{
Empty = true;
for (int j = 0; j < dataGridView1.Columns.Count; j++)
{
if (dataGridView1.Rows[i].Cells[1].Value != null && dataGridView1.Rows[i].Cells[1].Value.ToString() != "")
{
Empty = false;
break;
}
}
if (Empty)
{
row.Cells[1].Value = dr1.GetString(19);
row.Cells[1].Value = dr1.GetString(21);
}
}
}
}
dr1.Close();
con1.Close();
sda.Fill(ds1);
}
}
}
}
}
dataGridView1.Focus();
}
Boopalslm
3-May-17 13:02pm
View
this is windows application not a web application
Boopalslm
2-Feb-17 6:31am
View
k sir how to reset bill number every starts from one
Boopalslm
2-Feb-17 5:43am
View
how to start every day automatically reset in bill number starts from 1.
Boopalslm
2-Feb-17 5:39am
View
Thanks sir it's working good, thanks a lot..........................
Boopalslm
30-Dec-16 5:26am
View
I got a result thanks for your help........................Thanks a lot.
Boopalslm
30-Dec-16 5:10am
View
how to declare DATED in my gridview.
Boopalslm
30-Dec-16 4:40am
View
now i got a error from last line
Object reference not set to an instance of an object.
DataGridViewTextBoxColumn dgvtime = new DataGridViewTextBoxColumn();
dgvtime.HeaderText = "DATED";
dgvtime.Width = 100;
dataGridView1.Columns.Add(dgvtime);
dataGridView1.Columns["DATED"].DefaultCellStyle.Format = @"hh\:mm";
please guide me.
Boopalslm
30-Dec-16 4:06am
View
This is my code but not working
DataGridViewTextBoxColumn dgvtime = new DataGridViewTextBoxColumn();
dgvtime.HeaderText = "Time";
dgvtime.Width = 125;
dataGridView1.Columns.Add(dgvtime);
dataGridView1.Columns[1].DefaultCellStyle.Format = "hh:mm:ss tt";
please give me some ideas.
Boopalslm
17-Dec-16 11:48am
View
I got it, thanks a lot for your guidance............Thanks a lot....
Boopalslm
17-Dec-16 11:43am
View
error came on ImageFormat
The name ImageFormat does not exist in the current context how to solve this error
Boopalslm
17-Dec-16 11:32am
View
how to convert give me some ideas.
Boopalslm
8-Dec-16 3:04am
View
here i want for example i got a value in my text box 33.16 - i want 33.20 other wise less than ex 33.14 i want 33.10 - how to crate.
Boopalslm
8-Dec-16 2:47am
View
in my value <.13 here i want set to .1, other wise >.18 is set to .2
Boopalslm
6-Dec-16 12:36pm
View
but i got another problem
once stored the data grid view values into database, again I am bind the grid values and Insert into new one row but data grid view calculation is working wrong, first time working is good, once stored and retrieve and insert new row calculation problem, and I am write the code CellEndEdit – Events.
Boopalslm
6-Dec-16 12:34pm
View
now i got a solution, this is my code working good.
try
{
foreach (DataGridViewRow row in dataGridView1.Rows)
{
if (String.IsNullOrEmpty(dataGridView1.Rows[e.RowIndex].Cells[4].Value as String))
{
float iWei = float.Parse(dataGridView1.Rows[e.RowIndex].Cells[2].Value.ToString());
float iPer = float.Parse(dataGridView1.Rows[e.RowIndex].Cells[3].Value.ToString());
dataGridView1.Rows[e.RowIndex].Cells[5].Value = (iWei * iPer) / 100;
}
else if (row.Cells[4].Value != null)
{
dataGridView1.Rows[e.RowIndex].Cells[5].Value = "0";
float iWeis = float.Parse(dataGridView1.Rows[e.RowIndex].Cells[2].Value.ToString
());
float iPers = float.Parse(dataGridView1.Rows[e.RowIndex].Cells[3].Value.ToString
());
float iWass = float.Parse(dataGridView1.Rows[e.RowIndex].Cells[4].Value.ToString
());
dataGridView1.Rows[e.RowIndex].Cells[6].Value = (iPers + iWass) * iWeis;
}
}
}
catch (Exception)
{
}
Boopalslm
6-Dec-16 12:32pm
View
sir else part working perfectly, problem in if condition
Boopalslm
6-Dec-16 12:26pm
View
if (row.Cells[2].Value != DBNull.Value && row.Cells[3].Value != DBNull.Value)
{
if (row.Cells[4].Value == DBNull.Value)
{
float iWei = float.Parse(dataGridView1.Rows[e.RowIndex].Cells[2].Value.ToString());
float iPer = float.Parse(dataGridView1.Rows[e.RowIndex].Cells[3].Value.ToString());
dataGridView1.Rows[e.RowIndex].Cells[5].Value = (iWei * iPer) / 100;
dataGridView1.Rows[e.RowIndex].Cells[6].Value = null;//you can remove it if not needed
}
above code correct, but in 4th cell empty, that time cannot shown calculating values in 5th cell
that is my problem.
Boopalslm
6-Dec-16 12:22pm
View
yes if condition code 4 cell null, but cannot result shown on 5th cell,
Boopalslm
6-Dec-16 12:16pm
View
is not per-mentally null some times enter the values in cell 4
Boopalslm
6-Dec-16 11:14am
View
i am put a break point in foreach but the script cannot go to inside if condition jump on else part.
Boopalslm
6-Dec-16 11:08am
View
In your if condition code cannot multiplication value shown on cell 5, how to solve the error.
Boopalslm
6-Dec-16 4:07am
View
this is my code
foreach (DataGridViewRow row in dataGridView1.Rows)
{
if (row.Cells[4].Value != DBNull.Value && row.Cells[6].Value != DBNull.Value)
{
float iWei = float.Parse(dataGridView1.Rows[e.RowIndex].Cells[2].Value.ToString());
float iPer = float.Parse(dataGridView1.Rows[e.RowIndex].Cells[3].Value.ToString());
dataGridView1.Rows[e.RowIndex].Cells[5].Value = (iWei * iPer) / 100;
}
else
{
float iWei = float.Parse(dataGridView1.Rows[e.RowIndex].Cells[2].Value.ToString());
float iPer = float.Parse(dataGridView1.Rows[e.RowIndex].Cells[3].Value.ToString());
float iWas = float.Parse(dataGridView1.Rows[e.RowIndex].Cells[4].Value.ToString());
dataGridView1.Rows[e.RowIndex].Cells[6].Value = (iPer + iWas) * iWei;
}
}
}
Boopalslm
6-Dec-16 4:02am
View
this is my code
foreach (DataGridViewRow row in dataGridView1.Rows)
{
if (row.Cells[4].Value != DBNull.Value && row.Cells[6].Value != DBNull.Value)
{
float iWei = float.Parse(dataGridView1.Rows[e.RowIndex].Cells[2].Value.ToString());
float iPer = float.Parse(dataGridView1.Rows[e.RowIndex].Cells[3].Value.ToString());
dataGridView1.Rows[e.RowIndex].Cells[5].Value = (iWei * iPer) / 100;
}
else
{
float iWei = float.Parse(dataGridView1.Rows[e.RowIndex].Cells[2].Value.ToString());
float iPer = float.Parse(dataGridView1.Rows[e.RowIndex].Cells[3].Value.ToString());
float iWas = float.Parse(dataGridView1.Rows[e.RowIndex].Cells[4].Value.ToString());
dataGridView1.Rows[e.RowIndex].Cells[6].Value = (iPer + iWas) * iWei;
}
}
}
Boopalslm
6-Dec-16 4:02am
View
this is my code
foreach (DataGridViewRow row in dataGridView1.Rows)
{
if (row.Cells[4].Value != DBNull.Value && row.Cells[6].Value != DBNull.Value)
{
float iWei = float.Parse(dataGridView1.Rows[e.RowIndex].Cells[2].Value.ToString());
float iPer = float.Parse(dataGridView1.Rows[e.RowIndex].Cells[3].Value.ToString());
dataGridView1.Rows[e.RowIndex].Cells[5].Value = (iWei * iPer) / 100;
}
else
{
float iWei = float.Parse(dataGridView1.Rows[e.RowIndex].Cells[2].Value.ToString());
float iPer = float.Parse(dataGridView1.Rows[e.RowIndex].Cells[3].Value.ToString());
float iWas = float.Parse(dataGridView1.Rows[e.RowIndex].Cells[4].Value.ToString());
dataGridView1.Rows[e.RowIndex].Cells[6].Value = (iPer + iWas) * iWei;
}
}
}
Boopalslm
27-Nov-16 11:26am
View
sir if you don't mind totally alter my code sir. i will spend more and more time sir, but cannot get result.
Boopalslm
27-Nov-16 11:23am
View
sir what can i do sir.
Boopalslm
27-Nov-16 11:11am
View
no sir, how to use foreach loop in my update query.
Boopalslm
27-Nov-16 11:05am
View
above your code
Boopalslm
27-Nov-16 11:02am
View
no error, i am bind my previous record, and enter second row but cannot stored second row in data base.
Boopalslm
27-Nov-16 10:52am
View
sir if you don't mind please above alter my command because i was already spend 4 days, till now i cannot get result.
Boopalslm
27-Nov-16 10:43am
View
sir give me some ideas.
Boopalslm
27-Nov-16 10:36am
View
so how alter my queries give me some ideas
Boopalslm
27-Nov-16 9:51am
View
i am alter my code your procedure but cannot add to data base second row in same empnames, how to solve this error
Boopalslm
27-Nov-16 9:33am
View
sir just guide me sir i will spend 4 days sir. but till now i cannot get result.
Boopalslm
27-Nov-16 9:33am
View
below line is correct
empnames=@empnames+'", categories=@categories, weight=@weight,per=@per,wastage=@wastage,customer=@customer,party=@party where date=@date ", con2);
bur error is start on categories=@categories, how to solve sir
Boopalslm
27-Nov-16 9:24am
View
what i am do now, sir please alter my update query and send me sir.
Boopalslm
26-Nov-16 11:57am
View
HariHari 1 chain 2 2 2 0.04 2 0.130 5 -4.87
Hari 2 chain 3 3 3 0.09 3 0.130 5 -4.87
This is my update qury
SqlCommand cmd2 = new SqlCommand("update sales set empnames=@empnames+'" + comboBox1.Text + "', date=@date, categories=@categories, weight=@weight,per=@per,wastage=@wastage,customer=@customer,party=@party,amtcst=@amtcst,amtparty=@amtparty,amtfinal=@amtfinal where date=@date", con2);
See empnames names cell in first row empnames add 2 times
How to solve this problem.
Boopalslm
25-Nov-16 11:54am
View
I got a result..... Thanks to any one trying to my doubt.
Boopalslm
19-Nov-16 10:47am
View
Sir i got a answer, thanks for your support.............
Boopalslm
19-Nov-16 10:36am
View
data's are stored perfectly to data base. only error is came
The parameterized query '(@customer float,@empname nvarchar(4000),@date nvarchar(10))upda' expects the parameter '@customer', which was not supplied.
Boopalslm
19-Nov-16 10:28am
View
i will change cmd2 as per your code
cmd2.Parameters.Add("@customer", SqlDbType.Float).Value = rows.Cells[7].Value;
but below error is came
The parameterized query '(@customer float,@empname nvarchar(4000),@date nvarchar(10))upda' expects the parameter '@customer', which was not supplied.
sir please give me ideas or alter to my total codes and send me sir
Boopalslm
19-Nov-16 9:51am
View
i am change cmd3 change on same way to cmd2 but below error is came
this is my else part code
else
{
SqlConnection con3 = new SqlConnection(db.Connectionstring());
con3.Open();
SqlCommand cmd3 = new SqlCommand("insert into stkdetails(customer,empname,date)values(@customer,@empname,@date)", con3);
cmd3.Parameters.AddWithValue("@customer", Convert.ToDouble
(rows.Cells[7].Value));
cmd3.Parameters.AddWithValue("@empname", rows.Cells[2].Value);
cmd3.Parameters.AddWithValue("@date", txtdate.Text);
cmd3.ExecuteNonQuery();
con3.Close();
}
but error is came give me some ideas.
The parameterized query '(@customer float,@empname nvarchar(4000),@date nvarchar(10))inse' expects the parameter '@empname', which was not supplied.
Boopalslm
19-Nov-16 9:39am
View
I am alter my code as per your way but below error is came
The parameterized query '(@customer float,@empname nvarchar(4000),@date nvarchar(10))inse' expects the parameter '@empname', which was not supplied.
Boopalslm
19-Nov-16 9:22am
View
customer is data grid view column name, data type float, and than below this is my full code
foreach (DataGridViewRow rows in dataGridView1.Rows)
{
SqlConnection con1 = new SqlConnection(db.Connectionstring());
con1.Open();
SqlCommand cmd1 = new SqlCommand("select * from stkdetails where empname='" + rows.Cells[2].Value + "'", con1);
SqlDataReader dr = cmd1.ExecuteReader();
if (dr.HasRows)
{
SqlConnection con2 = new SqlConnection(db.Connectionstring());
con2.Open();
SqlCommand cmd2 = new SqlCommand("update stkdetails set customer=customer+@customer where empname=@empname and date=@date", con2);
cmd2.Parameters.AddWithValue("@customer", rows.Cells[7].Value);
cmd2.Parameters.AddWithValue("@empname", rows.Cells[2].Value);
cmd2.Parameters.AddWithValue("@date", txtdate.Text);
cmd2.ExecuteNonQuery();
con2.Close();
}
else
{
SqlConnection con3 = new SqlConnection(db.Connectionstring());
con3.Open();
SqlCommand cmd3 = new SqlCommand("insert into stkdetails(date,empname,customer)values('" + txtdate.Text + "','" + rows.Cells[2].Value + "','" + rows.Cells[7].Value + "')", con3);
cmd3.ExecuteNonQuery();
con3.Close();
}
}
Boopalslm
19-Nov-16 9:15am
View
I am trying your code but below error is came
The parameterized query '(@customer nvarchar(4000),@empname nvarchar(4000),@date nvarchar' expects the parameter '@customer', which was not supplied.
how to solve above error. give me some ideas
Boopalslm
18-Nov-16 12:16pm
View
The parameterized query '(@empname varchar(8000),@customer float)update stkdetails set cu' expects the parameter '@empname', which was not supplied.
now above error is came, what can i do give me ideas.
Boopalslm
18-Nov-16 12:08pm
View
how to solve the error
Boopalslm
18-Nov-16 11:55am
View
below error is came
The parameterized query '(@customer nvarchar(4000),@empName nvarchar(4000))update stkdeta' expects the parameter '@customer', which was not supplied.
Boopalslm
18-Nov-16 11:44am
View
rows.Cells[2].Value - this is proper parameterized cell value. but error is came
Boopalslm
23-Oct-16 13:05pm
View
sir it's working good, thanks a lot.
Boopalslm
19-Sep-16 13:21pm
View
sir it's working good, but second text box add +2 i want +1 only, how to solve this error.
Ex
first text box : 115
sec text box : 11
your code result
first text box 11
second text box 13 (here i want +1 only so result 12 only but result come +2)
Boopalslm
19-Sep-16 13:10pm
View
once first text box value greater than 100 it's adding +1 for second text box, it's working good now, but same time how to mines first text box value 100.
Ex
first text box having : 115
second text box having : 10
i want result
first text box :15
and then second text : 11
how to create, give me some ideas.
Boopalslm
19-Sep-16 12:46pm
View
It's working good thanks for your help, it's same time minus 100 for textBox2 how to create.
Boopalslm
12-Sep-16 7:57am
View
Your above code already i am used it's working good and calculating single cell values, but how to calculate both cell values and result shown on same text box. and then i want second cell convert decimal values.
Ex:
slno mts cms
1 5 2
2 3 4
I want 8.6
Boopalslm
12-Sep-16 6:17am
View
How to Calculation in DataGridView column values. Shown on text box
Boopalslm
30-Jul-16 3:55am
View
I got answer..... Any one thanks to try my error.
Boopalslm
29-Jul-16 12:41pm
View
your code is working good, but how to now update, i am adding new one row for data grid view now how to store same bill number for my new row.
Boopalslm
27-Jul-16 12:47pm
View
sir one more doubt, how to bind null values in text box,
this is my text box bind code
txtstaff.Text = dr[0].ToString();
values cannot dispaly. Give me some ideas. Above text box having null values and some rows having text.
Boopalslm
27-Jul-16 12:34pm
View
sir super, working fine,thanks a lot, i am spending more than 5 hrs above for this error,thanks a lot.
Boopalslm
22-Jul-16 3:11am
View
Above your query is working good, thanks for your query sir. Thanks a lot.
Boopalslm
18-Jul-16 6:33am
View
Sir thanks a lot working super and again thanks.
Boopalslm
18-Jul-16 6:30am
View
k its working fine , but shown value zero(0), but my grid view cells having some values.
Boopalslm
18-Jul-16 6:28am
View
i am change your if statement line but
before run error is came
invalid expression term '}'
Boopalslm
18-Jul-16 6:21am
View
Same error is came.
val += Convert.ToDecimal(item.Cells[9].Value);
Object cannot be cast from DBNull to other types.
Boopalslm
18-Jul-16 6:19am
View
i know, but my cell index is 9, i am set 9 for cell index, in 9th cell some empty cell are available so below error is came.
Object cannot be cast from DBNull to other types.
Boopalslm
18-Jul-16 6:13am
View
Error is came for below line
val += Convert.ToDecimal(item.Cells[1].Value);
Input string was not in a correct format.
Boopalslm
12-Jul-16 13:29pm
View
k sir thanks, but give me idea where i am edit my code.
Boopalslm
12-Jul-16 12:50pm
View
yes sir correct, but i am creating 3 rows but output time i am entered the values 2 rows only, because every time i not enter compulsory all 3 rows. Only enter alternatively.
Boopalslm
12-Jul-16 12:38pm
View
If you possible help a code wise, because i am trying more than 2 days.
Boopalslm
12-Jul-16 12:37pm
View
i am put a break point and check the line by line. And then i am entered the values first row only but error is came
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
Boopalslm
11-Jul-16 13:37pm
View
I am write your code in cellvalidated event but empty cell not print in zero.
How to set empty cells zero.
Boopalslm
11-Jul-16 13:01pm
View
how to set here i am using below code, but this code i am entered some values in cell[1] its also converting zero
if (dataGridView1.RowCount > 0 && dataGridView1.CurrentRow != null)
{
dataGridView1.CurrentRow.Cells[1].Value.ToString();
}
how to solve this error. I want i am skipped cells set as zero. how to create.
Boopalslm
9-Jul-16 5:46am
View
Thanks for your idea, but my data grid view columns I creating repeated columns
Here I am set data grid view allowed only 5 rows after complete enter 5 rows same columns are repeated again 5 rows.
Here how to get sum.
Boopalslm
8-Jul-16 13:11pm
View
same my first columns display to second columns
my first columns
slno mts cms
how to create give me ideas.
Boopalslm
27-Jun-16 11:38am
View
error is came
There is no row at position 0.
Boopalslm
27-Jun-16 11:28am
View
cannot display message box,
Boopalslm
20-Jun-16 6:20am
View
Deleted
where i am close this post
Boopalslm
20-Jun-16 6:13am
View
Deleted
sir super working fine thanks a lot............
Boopalslm
20-Jun-16 6:07am
View
Deleted
Error is came
'System.Windows.Forms.DataGridViewRowCollection' does not contain a definition for 'OfType' and no extension method 'OfType' accepting a first argument of type 'System.Windows.Forms.DataGridViewRowCollection' could be found (are you missing a using directive or an assembly reference?)
Boopalslm
20-Jun-16 5:58am
View
Thanks, It' s working nice but hot to set line height same as to for my datagridview height
Boopalslm
20-Jun-16 5:53am
View
Deleted
what can i do for DefaultCellStyle?
Boopalslm
18-Jun-16 11:46am
View
yes i was tried already by not working
out put
Slno
1
2
5
6
10
9
8
7
give me some ideas
Boopalslm
2-Jun-16 6:28am
View
how to this line convert decimal
decimal qty = Convert.ToSingle(dataGridView1.CurrentRow.Cells[6].Value);
Boopalslm
2-Jun-16 6:02am
View
how to convert my code.
Boopalslm
2-Jun-16 6:00am
View
yes i was but error is came
totqty = float.TryParse(sqldr[0].ToString());
Boopalslm
31-May-16 4:51am
View
sql server
Boopalslm
16-May-16 5:55am
View
any other solution, how to solve my error give me ideas.
Boopalslm
16-May-16 5:18am
View
k what i am using other controls, give me idea,
Boopalslm
16-May-16 4:05am
View
this is my login form code
private void button1_Click(object sender, EventArgs e)
{
SqlConnection con = new SqlConnection(db.Connectionstring());
con.Open();
SqlCommand cmd = new SqlCommand("select * from usercreation where username='" + txtuser.Text + "' and password='" + txtpassword.Text + "' and rights='" + comboBox1.Text + "'", con);
SqlDataReader dr = cmd.ExecuteReader();
if (dr.HasRows)
{
while (dr.Read())
{
string log = dr[3].ToString();
if (log == "User")
{
adminmdipanel adpanel = new adminmdipanel();
adpanel.Show();
usercreation uc = new usercreation();
uc.find.Visible = false;
uc.Show();
this.Hide();
}
else if (log == "Admin")
{
adminmdipanel adpanel = new adminmdipanel();
adpanel.Show();
usercreation uc = new usercreation();
uc.find.Visible = true;
uc.Show();
this.Hide();
this.Hide();
}
else
{
MessageBox.Show("Try Again");
}
}
}
dr.Close();
con.Close();
}
Boopalslm
16-May-16 4:05am
View
this is my login form code
private void button1_Click(object sender, EventArgs e)
{
SqlConnection con = new SqlConnection(db.Connectionstring());
con.Open();
SqlCommand cmd = new SqlCommand("select * from usercreation where username='" + txtuser.Text + "' and password='" + txtpassword.Text + "' and rights='" + comboBox1.Text + "'", con);
SqlDataReader dr = cmd.ExecuteReader();
if (dr.HasRows)
{
while (dr.Read())
{
string log = dr[3].ToString();
if (log == "User")
{
adminmdipanel adpanel = new adminmdipanel();
adpanel.Show();
usercreation uc = new usercreation();
uc.find.Visible = false;
uc.Show();
this.Hide();
}
else if (log == "Admin")
{
adminmdipanel adpanel = new adminmdipanel();
adpanel.Show();
usercreation uc = new usercreation();
uc.find.Visible = true;
uc.Show();
this.Hide();
this.Hide();
}
else
{
MessageBox.Show("Try Again");
}
}
}
dr.Close();
con.Close();
}
Boopalslm
16-May-16 4:01am
View
Another one doubt – I am creating login form (enter username (Text Box), password (Text Box) & rights(Using combo box) ,I am select a rights from user
That time my forms button disable, after that I again goes to login enter rights form Admin that time button visible, how to create in c# windows application 2010,
I am using MDI Parent form, without MDI parent working nice, but I am using MDI Parent forms not working (it means button visible both login), how to show my button control only admin login.
Boopalslm
16-May-16 4:01am
View
Another one doubt – I am creating login form (enter username (Text Box), password (Text Box) & rights(Using combo box) ,I am select a rights from user
That time my forms button disable, after that I again goes to login enter rights form Admin that time button visible, how to create in c# windows application 2010,
I am using MDI Parent form, without MDI parent working nice, but I am using MDI Parent forms not working (it means button visible both login), how to show my button control only admin login.
Boopalslm
15-May-16 9:39am
View
k now working fine,thanks a lot
Boopalslm
15-May-16 9:16am
View
k but i am restarted my computer how to get continues serial number
Boopalslm
15-May-16 9:10am
View
k it's working fine thanks a lot, but next day morning it's again starting from 1
Boopalslm
15-May-16 9:01am
View
k thanks i am waiting
Boopalslm
15-May-16 8:49am
View
yes its working fine thanks, but how to increment serial number every time submit the form vales and then next day when a login again serial number starting from 1
Boopalslm
15-May-16 8:46am
View
debugge error first line
'System.Text.StringBuilder' does not contain a definition for 'append' and no extension method 'append' accepting a first argument of type 'System.Text.StringBuilder' could be found (are you missing a using directive or an assembly reference?)
Boopalslm
15-May-16 8:44am
View
fist line error in Foramt, second line eror in append
Boopalslm
15-May-16 8:42am
View
how to display my serial in text box
Boopalslm
15-May-16 8:35am
View
yes this win forms, but i am write your code form page load event but error is came, first and second line.
Boopalslm
15-May-16 8:27am
View
where i am write this code, and then number shown on text box where to write above code
Boopalslm
15-May-16 8:27am
View
where i am write this code, and then number shown on text box where to write above code
Boopalslm
14-May-16 13:08pm
View
yes
Boopalslm
14-May-16 13:04pm
View
now i was set true but click mdi panel menu strip my form error is came
Form cannot be both an MDI child and MDI parent.
Parameter name: value
Boopalslm
14-May-16 13:00pm
View
main form means which form
Boopalslm
14-May-16 12:29pm
View
i got now another error
Form that was specified to be the MdiParent for this form is not an MdiContainer.
Parameter name: value
how to solve this error
Boopalslm
13-May-16 15:40pm
View
very thanks
Boopalslm
13-May-16 15:36pm
View
this is admin or user login code
private void button1_Click(object sender, EventArgs e)
{
SqlConnection con = new SqlConnection(db.Connectionstring());
con.Open();
//SqlCommand cmd = new SqlCommand("select * from login where username= '" + txtuser.Text + "'and password= '" + txtpassword.Text + "'", con);
SqlCommand cmd = new SqlCommand("select * from usercreation where username='" + txtuser.Text + "' and password='" + txtpassword.Text + "' and rights='" + comboBox1.Text + "'", con);
SqlDataReader dr = cmd.ExecuteReader();
if (dr.HasRows)
{
while (dr.Read())
{
string log = dr[3].ToString();
if (log == "User")
{
adminmdipanel adpanel = new adminmdipanel();
adpanel.Show();
this.Hide();
}
else if (log == "Admin")
{
adminmdipanel adpanel = new adminmdipanel();
adpanel.Show();
this.Hide();
}
else
{
MessageBox.Show("Try Again");
}
}
}
dr.Close();
con.Close();
}
Boopalslm
13-May-16 15:29pm
View
no i am using mdipanel
Boopalslm
13-May-16 15:24pm
View
i am using 3 control 2 text boxes, 1 combobox (inside combobox - 2 catagories admin & user), once user enter all correct details shown mdi panel, and click usercreation form that time find button disable for user enter the login, but again enter admin click same form button will be shown how to create.
Boopalslm
13-May-16 15:15pm
View
no both login button will be shown
Boopalslm
13-May-16 15:13pm
View
this is login form button script
private void button1_Click(object sender, EventArgs e)
{
SqlConnection con = new SqlConnection(db.Connectionstring());
con.Open();
//SqlCommand cmd = new SqlCommand("select * from login where username= '" + txtuser.Text + "'and password= '" + txtpassword.Text + "'", con);
SqlCommand cmd = new SqlCommand("select * from usercreation where username='" + txtuser.Text + "' and password='" + txtpassword.Text + "' and rights='" + comboBox1.Text + "'", con);
SqlDataReader dr = cmd.ExecuteReader();
if (dr.HasRows)
{
while (dr.Read())
{
string log = dr[3].ToString();
if (log == "User")
{
adminmdipanel adpanel = new adminmdipanel();
adpanel.Show();
this.Hide();
}
else if (log == "Admin")
{
adminmdipanel adpanel = new adminmdipanel();
adpanel.Show();
this.Hide();
}
else
{
MessageBox.Show("Try Again");
}
}
}
dr.Close();
con.Close();
}
Boopalslm
13-May-16 15:10pm
View
if condition is working else part not working
Boopalslm
13-May-16 15:08pm
View
i am creating login form using combobox select user / admin rights - i thing login in form is any problem,
Boopalslm
13-May-16 15:06pm
View
here is not working what can i do sir.
Boopalslm
13-May-16 14:59pm
View
private System.Windows.Forms.TextBox txtuser;
private System.Windows.Forms.TextBox txtpassword;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.Button button4;
private System.Windows.Forms.Button button3;
private System.Windows.Forms.Button clear;
private System.Windows.Forms.Button Submit;
public System.Windows.Forms.Button find;
}
}
OVER
Boopalslm
13-May-16 14:59pm
View
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(76, 27);
this.button4.TabIndex = 10;
this.button4.Text = "Delete";
this.button4.UseVisualStyleBackColor = true;
//
// button3
//
this.button3.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button3.Location = new System.Drawing.Point(154, 14);
this.button3.Margin = new System.Windows.Forms.Padding(75, 3, 3, 3);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(76, 27);
this.button3.TabIndex = 9;
this.button3.Text = "Update";
this.button3.UseVisualStyleBackColor = true;
//
// clear
//
this.clear.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.clear.Location = new System.Drawing.Point(308, 14);
this.clear.Margin = new System.Windows.Forms.Padding(75, 3, 3, 3);
this.clear.Name = "clear";
this.clear.Size = new System.Drawing.Size(76, 27);
this.clear.TabIndex = 11;
this.clear.Text = "Clear";
this.clear.UseVisualStyleBackColor = true;
//
// find
//
this.find.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.find.Location = new System.Drawing.Point(78, 14);
this.find.Margin = new System.Windows.Forms.Padding(75, 3, 3, 3);
this.find.Name = "find";
this.find.Size = new System.Drawing.Size(76, 27);
this.find.TabIndex = 8;
this.find.Text = "Find";
this.find.UseVisualStyleBackColor = true;
//
// Submit
//
this.Submit.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.Submit.Location = new System.Drawing.Point(0, 14);
this.Submit.Margin = new System.Windows.Forms.Padding(75, 3, 3, 3);
this.Submit.Name = "Submit";
this.Submit.Size = new System.Drawing.Size(76, 27);
this.Submit.TabIndex = 7;
this.Submit.Text = "Submit";
this.Submit.UseVisualStyleBackColor = true;
//
// usercreation
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1370, 750);
this.Controls.Add(this.tableLayoutPanel1);
this.Controls.Add(this.groupBox1);
this.Controls.Add(this.panel3);
this.Name = "usercreation";
this.Text = "usercreation";
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
this.Load += new System.EventHandler(this.usercreation_Load);
this.panel3.ResumeLayout(false);
this.panel3.PerformLayout();
this.tableLayoutPanel1.ResumeLayout(false);
this.tableLayoutPanel1.PerformLayout();
this.groupBox1.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.ComboBox rigjtsbox;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.TextBox txtname
Boopalslm
13-May-16 14:58pm
View
Deleted
this.txtname.Size = new System.Drawing.Size(243, 25);
this.txtname.TabIndex = 3;
//
// txtuser
//
this.txtuser.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.txtuser.Location = new System.Drawing.Point(110, 44);
this.txtuser.Margin = new System.Windows.Forms.Padding(3, 7, 3, 3);
this.txtuser.Multiline = true;
this.txtuser.Name = "txtuser";
this.txtuser.Size = new System.Drawing.Size(243, 25);
this.txtuser.TabIndex = 4;
//
// txtpassword
//
this.txtpassword.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.txtpassword.Location = new System.Drawing.Point(110, 83);
this.txtpassword.Margin = new System.Windows.Forms.Padding(3, 7, 3, 3);
this.txtpassword.Name = "txtpassword";
this.txtpassword.Size = new System.Drawing.Size(243, 23);
this.txtpassword.TabIndex = 5;
this.txtpassword.UseSystemPasswordChar = true;
//
// label5
//
this.label5.AutoSize = true;
this.label5.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label5.Location = new System.Drawing.Point(3, 47);
this.label5.Margin = new System.Windows.Forms.Padding(3, 10, 3, 0);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(87, 18);
this.label5.TabIndex = 1;
this.label5.Text = "User Name";
//
// groupBox1
//
this.groupBox1.Controls.Add(this.button4);
this.groupBox1.Controls.Add(this.button3);
this.groupBox1.Controls.Add(this.clear);
this.groupBox1.Controls.Add(this.find);
this.groupBox1.Controls.Add(this.Submit);
this.groupBox1.Location = new System.Drawing.Point(300, 321);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(399, 50);
this.groupBox1.TabIndex = 7;
this.groupBox1.TabStop = false;
//
// button4
//
this.button4.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button4.Location = new System.Drawing.Point(232, 14);
this.button4.Margin = new System.Windows.Forms.Padding(75, 3, 3, 3);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(76, 27);
this.button4.TabIndex = 10;
this.button4.Text = "Delete";
this.button4.UseVisualStyleBackColor = true;
//
// button3
//
this.button3.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button3.Location = new System.Drawing.Point(154, 14);
this.button3.Margin = new System.Windows.Forms.Padding(75, 3, 3, 3);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(76, 27);
this.button3.TabIndex = 9;
this.button3.Text = "Update";
this.button3.UseVisualStyleBackColor = true;
//
// clear
//
this.clear.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.clear.Location = new System.Drawing.Point(308, 14);
this.clear.Margin = new System.Windows.Forms.Padding(75, 3, 3, 3);
Boopalslm
13-May-16 14:58pm
View
// rigjtsbox
//
this.rigjtsbox.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.rigjtsbox.FormattingEnabled = true;
this.rigjtsbox.Items.AddRange(new object[] {
"User",
"Admin"});
this.rigjtsbox.Location = new System.Drawing.Point(110, 116);
this.rigjtsbox.Name = "rigjtsbox";
this.rigjtsbox.Size = new System.Drawing.Size(182, 28);
this.rigjtsbox.TabIndex = 6;
//
// tableLayoutPanel1
//
this.tableLayoutPanel1.ColumnCount = 2;
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 26.16137F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 73.83863F));
this.tableLayoutPanel1.Controls.Add(this.label2, 0, 2);
this.tableLayoutPanel1.Controls.Add(this.label4, 0, 3);
this.tableLayoutPanel1.Controls.Add(this.rigjtsbox, 1, 3);
this.tableLayoutPanel1.Controls.Add(this.label1, 0, 0);
this.tableLayoutPanel1.Controls.Add(this.txtname, 1, 0);
this.tableLayoutPanel1.Controls.Add(this.label5, 0, 1);
this.tableLayoutPanel1.Controls.Add(this.txtuser, 1, 1);
this.tableLayoutPanel1.Controls.Add(this.txtpassword, 1, 2);
this.tableLayoutPanel1.Location = new System.Drawing.Point(300, 154);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
this.tableLayoutPanel1.RowCount = 4;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 48.68421F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 51.31579F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 37F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 47F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(409, 161);
this.tableLayoutPanel1.TabIndex = 0;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.Location = new System.Drawing.Point(3, 10);
this.label1.Margin = new System.Windows.Forms.Padding(3, 10, 3, 0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(50, 18);
this.label1.TabIndex = 0;
this.label1.Text = "Name";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label2.Location = new System.Drawing.Point(3, 86);
this.label2.Margin = new System.Windows.Forms.Padding(3, 10, 3, 0);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(78, 18);
this.label2.TabIndex = 2;
this.label2.Text = "Password";
//
// txtname
//
this.txtname.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.txtname.Location = new System.Drawing.Point(110, 7);
this.txtname.Margin = new System.Windows.Forms.Padding(3, 7, 3, 3);
this.txtname.Multiline = true;
this.txtname.Name = "txtname";
Boopalslm
13-May-16 14:58pm
View
// rigjtsbox
//
this.rigjtsbox.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.rigjtsbox.FormattingEnabled = true;
this.rigjtsbox.Items.AddRange(new object[] {
"User",
"Admin"});
this.rigjtsbox.Location = new System.Drawing.Point(110, 116);
this.rigjtsbox.Name = "rigjtsbox";
this.rigjtsbox.Size = new System.Drawing.Size(182, 28);
this.rigjtsbox.TabIndex = 6;
//
// tableLayoutPanel1
//
this.tableLayoutPanel1.ColumnCount = 2;
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 26.16137F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 73.83863F));
this.tableLayoutPanel1.Controls.Add(this.label2, 0, 2);
this.tableLayoutPanel1.Controls.Add(this.label4, 0, 3);
this.tableLayoutPanel1.Controls.Add(this.rigjtsbox, 1, 3);
this.tableLayoutPanel1.Controls.Add(this.label1, 0, 0);
this.tableLayoutPanel1.Controls.Add(this.txtname, 1, 0);
this.tableLayoutPanel1.Controls.Add(this.label5, 0, 1);
this.tableLayoutPanel1.Controls.Add(this.txtuser, 1, 1);
this.tableLayoutPanel1.Controls.Add(this.txtpassword, 1, 2);
this.tableLayoutPanel1.Location = new System.Drawing.Point(300, 154);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
this.tableLayoutPanel1.RowCount = 4;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 48.68421F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 51.31579F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 37F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 47F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(409, 161);
this.tableLayoutPanel1.TabIndex = 0;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.Location = new System.Drawing.Point(3, 10);
this.label1.Margin = new System.Windows.Forms.Padding(3, 10, 3, 0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(50, 18);
this.label1.TabIndex = 0;
this.label1.Text = "Name";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label2.Location = new System.Drawing.Point(3, 86);
this.label2.Margin = new System.Windows.Forms.Padding(3, 10, 3, 0);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(78, 18);
this.label2.TabIndex = 2;
this.label2.Text = "Password";
//
// txtname
//
this.txtname.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.txtname.Location = new System.Drawing.Point(110, 7);
this.txtname.Margin = new System.Windows.Forms.Padding(3, 7, 3, 3);
this.txtname.Multiline = true;
this.txtname.Name = "txtname";
Boopalslm
13-May-16 14:55pm
View
this is me entire code
namespace bpexports
{
partial class usercreation
{
///
/// Required designer variable.
///
private System.ComponentModel.IContainer components = null;
///
/// Clean up any resources being used.
///
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
///
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
///
private void InitializeComponent()
{
this.label3 = new System.Windows.Forms.Label();
this.panel3 = new System.Windows.Forms.Panel();
this.label4 = new System.Windows.Forms.Label();
this.rigjtsbox = new System.Windows.Forms.ComboBox();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.txtname = new System.Windows.Forms.TextBox();
this.txtuser = new System.Windows.Forms.TextBox();
this.txtpassword = new System.Windows.Forms.TextBox();
this.label5 = new System.Windows.Forms.Label();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.button4 = new System.Windows.Forms.Button();
this.button3 = new System.Windows.Forms.Button();
this.clear = new System.Windows.Forms.Button();
this.find = new System.Windows.Forms.Button();
this.Submit = new System.Windows.Forms.Button();
this.panel3.SuspendLayout();
this.tableLayoutPanel1.SuspendLayout();
this.groupBox1.SuspendLayout();
this.SuspendLayout();
//
// label3
//
this.label3.AutoSize = true;
this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 35F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label3.ForeColor = System.Drawing.SystemColors.ButtonFace;
this.label3.Location = new System.Drawing.Point(449, 24);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(325, 54);
this.label3.TabIndex = 30;
this.label3.Text = "User Creation";
//
// panel3
//
this.panel3.BackColor = System.Drawing.Color.DeepPink;
this.panel3.Controls.Add(this.label3);
this.panel3.Location = new System.Drawing.Point(-65, 0);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(1500, 100);
this.panel3.TabIndex = 32;
//
// label4
//
this.label4.AutoSize = true;
this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label4.Location = new System.Drawing.Point(3, 123);
this.label4.Margin = new System.Windows.Forms.Padding(3, 10, 3, 0);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(55, 20);
this.label4.TabIndex = 12;
this.label4.Text = "Rights";
//
// rigjtsbox
//
this.rigjtsbox.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)
Boopalslm
13-May-16 14:51pm
View
usercreation.designer.cs code
namespace bpexports
{
partial class usercreation
{
///
/// Required designer variable.
///
private System.ComponentModel.IContainer components = null;
///
/// Clean up any resources being used.
///
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
///
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
///
private void InitializeComponent()
{
this.label3 = new System.Windows.Forms.Label();
this.panel3 = new System.Windows.Forms.Panel();
this.label4 = new System.Windows.Forms.Label();
this.rigjtsbox = new System.Windows.Forms.ComboBox();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.txtname = new System.Windows.Forms.TextBox();
this.txtuser = new System.Windows.Forms.TextBox();
this.txtpassword = new System.Windows.Forms.TextBox();
this.label5 = new System.Windows.Forms.Label();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.button4 = new System.Windows.Forms.Button();
this.button3 = new System.Windows.Forms.Button();
this.clear = new System.Windows.Forms.Button();
this.find = new System.Windows.Forms.Button();
this.Submit = new System.Windows.Forms.Button();
this.panel3.SuspendLayout();
this.tableLayoutPanel1.SuspendLayout();
this.groupBox1.SuspendLayout();
this.SuspendLayout();
//
// label3
//
this.label3.AutoSize = true;
this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 35F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label3.ForeColor = System.Drawing.SystemColors.ButtonFace;
this.label3.Location = new System.Drawing.Point(449, 24);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(325, 54);
this.label3.TabIndex = 30;
this.label3.Text = "User Creation";
//
// panel3
//
this.panel3.BackColor = System.Drawing.Color.DeepPink;
this.panel3.Controls.Add(this.label3);
this.panel3.Location = new System.Drawing.Point(-65, 0);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(1500, 100);
this.panel3.TabIndex = 32;
//
// label4
//
this.label4.AutoSize = true;
this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label4.Location = new System.Drawing.Point(3, 123);
this.label4.Margin = new System.Windows.Forms.Padding(3, 10, 3, 0);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(55, 20);
this.label4.TabIndex = 12;
this.label4.Text = "Rights";
//
// rigjtsbox
//
this.rigjtsbox.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((
Boopalslm
13-May-16 14:50pm
View
usercreation.cs code
namespace bpexports
{
public partial class usercreation : Form
{
public usercreation()
{
InitializeComponent();
}
string log = "Admin";
private void usercreation_Load(object sender, EventArgs e)
{
if (log == "Admin")
{
find.Visible = false;
}
else
{
find.Enabled = true;
}
}
}
}
Boopalslm
13-May-16 14:46pm
View
if you possible edit my code and send me.
Boopalslm
13-May-16 14:42pm
View
now i am doing same your way but button is visible, i am enter user or admin login button is visible.give me ideas
Boopalslm
13-May-16 14:30pm
View
Submit, find, button3, button4, clear
Boopalslm
13-May-16 14:27pm
View
5 buttons
Boopalslm
13-May-16 14:26pm
View
i am several time doing, but not working give me ideas.
Boopalslm
13-May-16 14:25pm
View
it means what can i do next, give me ideas
Boopalslm
13-May-16 14:15pm
View
else part only working not goes to if section below this is my code
string log = "Admin";
private void usercreation_Load(object sender, EventArgs e)
{
if (log == "User")
{
find.Enabled = true;
}
else
{
find.Enabled = false;
}
}
give me ideas
Boopalslm
13-May-16 14:15pm
View
else part only working not goes to if section below this is my code
string log = "Admin";
private void usercreation_Load(object sender, EventArgs e)
{
if (log == "User")
{
find.Enabled = true;
}
else
{
find.Enabled = false;
}
}
give me ideas
Boopalslm
13-May-16 13:54pm
View
it is not working, both user & admin login shown on button, how to disable button on user login
Boopalslm
10-Apr-16 5:49am
View
It's working fine thanks a lot.
Boopalslm
21-Feb-16 4:58am
View
i got a answer thanks
Boopalslm
16-Feb-16 10:17am
View
Sir it's working fine and good thanks for your idea's, Thanks a lot.
Boopalslm
16-Feb-16 2:27am
View
k i will check once
Boopalslm
16-Feb-16 2:22am
View
if you possible please modify my above code and send me.
Boopalslm
16-Feb-16 2:13am
View
pnlProducts.Visible = true;
int CategoryID = Int16.TryParse((((LinkButton)sender).CommandArgument));
GetProducts(CategoryID);
Now i am use as per your ideas, but same line is error is came, please give me ideas.
Boopalslm
16-Feb-16 2:05am
View
pnlProducts.Visible = true;
int CategoryID = Convert.ToInt16((((LinkButton)sender).CommandArgument));
GetProducts(CategoryID);
k working but now above line are error, Input string was not in a correct format, how to solve this problem.
Boopalslm
15-Feb-16 11:17am
View
where i am using TryParse function
Boopalslm
15-Feb-16 11:09am
View
when i click a LinkButton at that time shown particulate products in my panel.
Boopalslm
15-Feb-16 2:10am
View
"paid" is my database table column name
Boopalslm
12-Feb-16 2:24am
View
k working, but data's are not saved in SaveCustomerDetails() table.
Boopalslm
12-Feb-16 2:21am
View
yes i am checking line by line my SaveCustomerDetails() table, but again same error is came.
Boopalslm
12-Feb-16 1:49am
View
string productids = string.Empty;
DataTable dt;
if (Session["MyCart"] != null)
{
dt = (DataTable)Session["MyCart"];
tkbsonsmerchant k = new tkbsonsmerchant()
{
CustomerName = txtCustomerName.Text,
CustomerEmailID = txtCustomerEmailID.Text,
CustomerAddress = txtCustomerAddress.Text,
CustomerPhoneNo = txtCustomerPhoneNo.Text,
TotalPrice = Convert.ToInt32(txtTotalPrice.Text),
ProductList = productids,
PaymentMethod = rblPaymentMethod.SelectedItem.Text
};
DataTable dtResult = k.SaveCustomerDetails();
for (int i = 0; i < dt.Rows.Count; i++)
{
tkbsonsmerchant SaveProducts = new tkbsonsmerchant()
{
//BELOW LIEN HERE IS ERROR CAME - INDEX OUT OF RANGE EXCEPTION WAS UNHANDLED BY USER CODE - THERE IS ROW AT POSITION 0.
CustomerID = Convert.ToInt32(dtResult.Rows[0][0]),
ProductID = Convert.ToInt32(dt.Rows[i]["ProductID"]),
};
SaveProducts.SaveCustomerProducts();
}
Session.Clear();
lblTransactionNo.Text = "Your Transaction No :-" + dtResult.Rows[0][0];
pnlOrderPlacedSuccessfully.Visible = true;
sendOrderPlacedAlert(txtCustomerName.Text, txtCustomerEmailID.Text, Convert.ToString(dtResult.Rows[0][0]));
txtCustomerAddress.Text = string.Empty;
txtCustomerEmailID.Text = string.Empty;
txtCustomerName.Text = string.Empty;
txtCustomerPhoneNo.Text = string.Empty;
txtTotalPrice.Text = "0";
txtTotalProducts.Text = "0";
}
Again error came,please give me any one idea.
Boopalslm
1-Feb-16 4:29am
View
It's working thanks a lot
Boopalslm
3-Aug-15 5:35am
View
k- Thank you.
Boopalslm
3-Aug-15 5:19am
View
Again i got error from anther one form - please give me some suggestions.
This is my Error.
Compiler Error Message: CS1061: 'ShoppingHeart.BusinessLayer.ShoppingCart' does not contain a definition for 'GetAllProducts' and no extension method 'GetAllProducts' accepting a first argument of type 'ShoppingHeart.BusinessLayer.ShoppingCart' could be found (are you missing a using directive or an assembly reference?)
Boopalslm
1-Aug-15 5:03am
View
sir i am follow your steps but not working sir, give me some suggestions
Boopalslm
1-Aug-15 3:17am
View
Hello Sir, i am not understand below lins
If it won't work use ILDASM.exe to watch the shoppingcart class contains the property flag. If not remove the dll physically, build once and add it again. it works.
what can i do for please explain once sir.
Boopalslm
1-Aug-15 1:38am
View
No, sir i am not provide my project anywhere
Boopalslm
31-Jul-15 8:08am
View
yes sir, my compiled are correct, again once i am verify my files sir.
Boopalslm
31-Jul-15 6:21am
View
This is my error message sir,
Error Message: CS0117: 'ShoppingHeart.BusinessLayer.ShoppingCart' does not contain a definition for 'Flag'
Boopalslm
31-Jul-15 6:18am
View
Hello - are you find any errors my class file
Boopalslm
31-Jul-15 6:10am
View
namespace ShoppingHeart.BusinessLayer
{
public class ShoppingCart
{
public string CategoryName;
public int CategoryID;
public int ProductID;
public int CustomerID;
public string ProductName;
public string ProductImage;
public string ProductPrice;
public string ProductDescription;
public string CustomerName;
public string CustomerEmailID;
public string CustomerPhoneNo;
public string CustomerAddress;
public string ProductList;
public string PaymentMethod;
public string OrderStatus;
public string OrderNo;
public int TotalProducts;
public int TotalPrice;
public int StockType;
public int Flag { get; set; }
--------------------DB Coding ------------------------
internal DataTable GetOrderList()
{
SqlParameter[] parameters = new SqlParameter[1];
parameters[0] = DataLayer.DataAccess.AddParameter("@Flag", Flag, System.Data.SqlDbType.Int, 20);
DataTable dt = DataLayer.DataAccess.ExecuteDTByProcedure("SP_GetOrderList", parameters);
return dt; //i am write this line
}
Boopalslm
31-Jul-15 6:03am
View
now i am alter my ShoppingCart class file change to - public int Flag{get;set;} - But again i got same error. give me some suggestions.
Boopalslm
31-Jul-15 5:42am
View
How to convert a public in "Flag" - Give me ideas - Because i am beginner for .net.
Boopalslm
31-Jul-15 5:37am
View
ShoppingCart class file i was had "Flag" Proeprty - "public int Flag;" - This is my
ShoppingCart class Flag property script
Show More