You are absolutely correct, the parameter is my problem. I tried your way.It works =D
But I use parameter method is to escape escape-characters in key, which is input by user. If I do it in this way, it won't escape....
User Profile
Collapse
-
OleDb query with positioned parameters
Hi,
I'm a newbie in C#, I wrote an OLEDb query with positioned parameter. It seems not working. Can anyone please point out where I've done wrong? Thanks in advance.
Here is my code:
Code:using (OleDbConnection conn = new OleDbConnection(connString)) { String key = textbox1.text; string cmd = "Select * from [" + filename + "] Where " + fieldname + "
-
Hi,
Thanks for your reply. You are right, I need to ReportProgress. I think that's because I didn't set bgw.WorkerRepor tProgress = true. That's why I got an error message.
I appreciate for your help. =DLeave a comment:
-
How to update the progress bar in a modal window?
Hi,
I'm a novice in C#. I wrote a program to export data from datagridview. While exporting, a pop-up window shows the progress of file exporting.
The code is as follow:
BackgroundWorke r bgw = new BackgroundWorke r();
bgw.DoWork += delegate
{
//Code for exporting data
};
bgw.RunWorkerAs ync();
FrmProgress progress = new FrmProgress();... -
C# Problem
Hi,
I'm a novice in C#. I wrote a program to export data from datagridview. While exporting, a pop-up window shows the progress of file exporting.
The code is as follow:
Code:BackgroundWorker bgw = new BackgroundWorker(); bgw.DoWork += delegate { //Code for exporting data }; bgw.RunWorkerAsync(); FrmProgress progress = new FrmProgress();
No activity results to display
Show More
Leave a comment: