16,014,613 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 .NET 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 _bluRe_ (Top 58 by date)
_bluRe_
24-Feb-16 10:26am
View
thank you for the reminder sir.
_bluRe_
24-Feb-16 10:26am
View
thank you for this sir. null error is gone.
_bluRe_
24-Feb-16 6:05am
View
i updated the question sir. thanks!
_bluRe_
24-Feb-16 6:04am
View
i updated the question sir. thanks!
_bluRe_
24-Feb-16 1:37am
View
okay sir. will look into it again. but i have a question, is it good to still use foreach or just for loop?
_bluRe_
24-Feb-16 0:23am
View
already did sir. but i cant figure it out. why it will give a null error
_bluRe_
24-Feb-16 0:22am
View
i already use the debuger mode and the error lies in that code. hmmm
_bluRe_
23-Feb-16 23:44pm
View
yes sir. im sure. i have a guess it will still get last thing which is empty so thats why the error occurs.
_bluRe_
23-Feb-16 23:31pm
View
or maybe because it still count the last value which is nothing?
_bluRe_
23-Feb-16 23:30pm
View
no sir. it has a rowindex=49
_bluRe_
23-Feb-16 23:05pm
View
is it because of the counter?
_bluRe_
21-Feb-16 23:59pm
View
okay sir. will look for it later
_bluRe_
21-Feb-16 10:13am
View
the values in the cells are integer value sir
_bluRe_
21-Feb-16 10:02am
View
no sir. it throws and exception in gg = (List<int>)metroGrid1.Rows[1].Cells[x].Value;
_bluRe_
23-Mar-15 8:11am
View
every time i choose the item that is newly put, the database shows system.data.datarowview
_bluRe_
23-Mar-15 5:51am
View
thanks griff. can u suggest a best way to put a connection string?
_bluRe_
12-Mar-15 5:10am
View
i wanted to subtract the inventory total price and inventoryout total price where the answer is placed in inventory db
_bluRe_
11-Mar-15 11:43am
View
i want to produce the desired output.. subtracting the same product with the latest inputed values in inventoryout.
_bluRe_
11-Mar-15 11:08am
View
how can i do integrate it with the chart in visual studio using c#?
like this.chart1.Series["NetIncome"].Points.AddXY("","");
_bluRe_
11-Mar-15 10:54am
View
I am using mysql php myadmin
_bluRe_
11-Mar-15 10:06am
View
updated
_bluRe_
10-Mar-15 10:22am
View
thank you for your time. those variable were just samples. i figured out something else :)
_bluRe_
9-Mar-15 4:15am
View
how can i call this method with parameter(totalPrice(double r)) and place its value into a command.para.addwithvalue in the button event?
_bluRe_
9-Mar-15 2:45am
View
thanks. what is the 2 in totalPrice(2), is it the value thats in totalPrice?
_bluRe_
9-Mar-15 1:37am
View
i tried it but still its wrong. hmm
_bluRe_
8-Mar-15 12:24pm
View
cmd.commandText = "insert into ....values(@computedTwo)..";
ComputedTwo();
cmd.Parameter.AddwithValue(@computerTwo);
something like this? thats what i want to do but i dont know how to put the method in the parameter..
_bluRe_
8-Mar-15 12:15pm
View
how can i code this in buttonevent in c#? like assign in a string variable, then..?
_bluRe_
8-Mar-15 12:12pm
View
hmm something like execute the sub query and assign to variable then put them into the main query, right?
_bluRe_
8-Mar-15 11:44am
View
how can i put a selec sum query inside an insert query?
_bluRe_
8-Mar-15 11:17am
View
is my select sum function correct?
_bluRe_
8-Mar-15 9:30am
View
the code is wrong. well i just wanted to execute multiple sql query and put them in certain column.
_bluRe_
3-Mar-15 2:36am
View
no extension method for DataBind(). is it ok to remove this?
_bluRe_
22-Feb-15 10:36am
View
i have two combo box (first, second). the problem is when i select in the first, the selectedvalue in the first is the same as the second. so generally everytime i choose, its generates to the other
_bluRe_
22-Feb-15 10:27am
View
so generally, everytime is choose an item in diff combobox they choose the same
_bluRe_
22-Feb-15 10:26am
View
i have two combobox (firstCombo, secondCombo). the problem is everytime i select an item in firstcombo, the secondcombo does as well. im trying to do a dashboard here :)
_bluRe_
22-Feb-15 9:37am
View
im good to go :) thanks!
_bluRe_
22-Feb-15 8:41am
View
command.CommandText = "update inventory left join inventoryout on inventory.Product = inventoryout.Product set inventory.Stock = (inventory.Stock - inventoryout.Stock) where inventory.Product = @Products";
command.CommandText = "update inventory left join inventoryout on inventory.Product = inventoryout.Product set inventory.TotalPrice = (inventory.TotalPrice - inventoryout.TotalPrice) where inventory.Product = @Products";
is this ok?
_bluRe_
22-Feb-15 8:19am
View
thanks men! u gave me that idea :)
_bluRe_
22-Feb-15 8:02am
View
so do u mean a bind method that updates the inventory?
_bluRe_
22-Feb-15 7:43am
View
you are right. do i need another database that stores inventory.stock - inventoryout.stock?
_bluRe_
22-Feb-15 7:22am
View
Deleted
what am i missing >.<
_bluRe_
22-Feb-15 7:17am
View
this dosen't update the main inventory stock..
_bluRe_
22-Feb-15 2:01am
View
this is the updated code
_bluRe_
22-Feb-15 2:00am
View
DataSet ds = new DataSet();
try
{
MySqlConnection con = new MySqlConnection("connection...");
con.Open();
MySqlCommand command = con.CreateCommand();
command.CommandText = "Select * from inventory where Product like @cb ";
command.Parameters.Add("@cb", MySqlDbType.VarChar, 20).Value = "%" + this.cbProductDescription.GetItemText(this.cbProductDescription.SelectedItem);
MySqlDataAdapter da = new MySqlDataAdapter();
command.ExecuteNonQuery();
da.SelectCommand = command;
da.Fill(ds);
da.Update(ds);
con.Close();
}
catch (Exception r)
{
MessageBox.Show(r.ToString());
}
_bluRe_
22-Feb-15 1:59am
View
still the same. i did something like this this.cbProductDescription.GetItemText(this.cbProductDescription.SelectedItem) no error but nothing happens as well
_bluRe_
22-Feb-15 1:46am
View
i was trying to do a search here :)
_bluRe_
22-Feb-15 1:45am
View
yaa. the problem is here. cbProductDescription.SelectedItem.ToString(); even is i instantiate the selected value to a string, still same.
_bluRe_
20-Feb-15 8:46am
View
why everytime i put data in sql server compact database the data wont retrieve after the program is closed and the computer's off
_bluRe_
19-Feb-15 22:06pm
View
thanks! i figured something out :D
_bluRe_
19-Feb-15 19:05pm
View
1st row of stock multiply to 1st row of price = 1st row of total price. thats what im trying to do :)
_bluRe_
19-Feb-15 10:25am
View
i cant see the value placed. anyway maybe i'l just let the user input the price because it's not fix. do you know how to place a value in the total row where stock and price is multiplied?
_bluRe_
19-Feb-15 10:17am
View
nothing happens. no error either. sad.
_bluRe_
19-Feb-15 10:13am
View
oww. let me try that. :)
_bluRe_
19-Feb-15 9:39am
View
hmm so that another process right?
_bluRe_
19-Feb-15 2:27am
View
i knew it. that's what i've been thinking the whole time. what would be the best solution for this?
_bluRe_
19-Feb-15 1:28am
View
this is the whole code. from the moment the user pick the list of products in the cbproductdescription, i want to have a corresponding value or price that should already generated from the chosen product. is the code below possible for that kind of output? :))
try
{
SqlCeConnection connection = new SqlCeConnection("DATASOURCE=Database1.sdf");
connection.Open();
SqlCeCommand command = connection.CreateCommand();
command.CommandText = "INSERT INTO NewInventory(Product Description,Stock,Month,Model Number,Price,Total Cost) VALUES (@Product,@Stock,@Month,@Model,@Price,@Total)";
command.Parameters.AddWithValue("@Product", cbProductDescription.SelectedItem.ToString());
command.Parameters.AddWithValue("@Stock", txtQuantityInventory.Text);
command.Parameters.AddWithValue("@Month", cbMonth.SelectedItem.ToString());
command.Parameters.AddWithValue("@Model", txtModelNumber.Text);
if (cbProductDescription.SelectedItem.ToString() == "Prepaid - 300")
{
command.Parameters.AddWithValue("@Price", 7);
}
command.Parameters.AddWithValue("@Total", 0);
command.Prepare();
command.ExecuteNonQuery();
connection.Close();
_bluRe_
16-Feb-15 8:36am
View
oww. really? thanks !
_bluRe_
16-Feb-15 8:01am
View
yaa. it says error parsing the query. token line number = 1, token line ofset = 24, token in error = user
Show More