|
Franklinlloyd wrote: How do I change this code to VB
Why do you want to convert to that other language?
Jokes apart, and tol is a joke, all .NET compiles to the same bytecode and once you have a .dll, it all becomes language agnostic.
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
|
hello,
i am using indexing service to index my files and search for special words using my c# application.
these is my query string : cmdSearch.CommandText = "select doctitle, filename, vpath, rank, characterization from scope() where Contents Like 'BP%' ";
but no result found, is their any problems withmy query string
best regards.
dghdfghdfghdfghdgh
|
|
|
|
|
Just a stab in the dark, but dop you have a file who's contents START with the characters BP ?
If not then that's the problem.
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
i want to search for a part of word , how can i do it ??
dghdfghdfghdfghdgh
|
|
|
|
|
Working on the assumption that Content is all of the file then a wild card of %FIND_THIS% would return every file containing FIND_THIS. Have a little read on how wildcards work; it should be reasonably clear.
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
Pu the % sign before as well.
जय हिंद
|
|
|
|
|
Hi friends,
I am developing one application - in which on click event of a button, I am calling several functions and other sub-routines (e.g. creation of CSV file, Copy them to SQL table, load them to Datagrid) - now my problem is that when there are loads of data - it takes considerable time until grid fills with the data. So I need to execute progressbar or any other animation - during that idle time.
I read something about background worker in C# - but I could not fit it into my requirement any how.... so kindly help, it would be fine if some other alternative to the same requirement
thanks a lot,
Jeet
|
|
|
|
|
You must fill the DataGrid on the UI thread, so if that is what is taking the time, threading won't help. If the other work is taking an appreciable amount of time, then BackgroundWorker is a good choice.
This might help: http://www.albahari.com/threading/part3.aspx#_BackgroundWorker[^]
Nick
----------------------------------
Be excellent to each other
|
|
|
|
|
if you fill the Datagridview row by row then it's will take a while but it's easy
1- Get the DataTable rows count
2- Progress Max Value = row Count
3- on every row you add by manual Incearse the progressbar value
here is a sample :
int RowCount = 100;
int AddRow = 0;
private void button3_Click(object sender, EventArgs e)
{
progressBar1.Maximum = RowCount;
backgroundWorker1.WorkerReportsProgress = true;
backgroundWorker1.RunWorkerAsync();
}
private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
{
for (int i = 0; i < RowCount; i++)
{
AddRow = i;
backgroundWorker1.ReportProgress(AddRow);
}
}
private void backgroundWorker1_ProgressChanged(object sender, ProgressChangedEventArgs e)
{
progressBar1.Value = e.ProgressPercentage;
}
P.S :
I would never add row to datagrid manually I would use DataSource properties
I know nothing , I know nothing ...
|
|
|
|
|
This doesn't address your exact problem - but if you do decide to use a BackgroundWorker and a ProgressBar - my ProgressWorker[^] article may be of use.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
How can I forward a port in a router programmatically with C#?
Is it possible?
|
|
|
|
|
With UPnP or NAT-PMP (depending on the router) or neither (in some cases)
|
|
|
|
|
I have a datatable and I need to create a csv file with its contents. Can someone show me an example of how to do it please? Thanks for your time.
Regards,
John
|
|
|
|
|
Here
I know nothing , I know nothing ...
|
|
|
|
|
Hi
My form has a few Tabs. Each Tab has a DataGridView on it.
Using the arrow keys switches between tabs. This stops when the user clicks on any cell i a gridview, in which case the arrow keys move around the grid.
Is there any way I can force this mode on entry into a tab?
I have tried setting the top left cell of the gridview to Selected = true, but this doesn't help.
Thanks,
Nigel
|
|
|
|
|
Try setting the focus on the tabpage.
जय हिंद
|
|
|
|
|
Tried. Doesn't help.
Tried setting focus to the gridview, doesn't help.
|
|
|
|
|
How are you managing the tab page change on arrow key press?
You will need to cancel the KeyPress for the GridView and get that code for execution.
जय हिंद
|
|
|
|
|
I was hoping that there would be an easier solution!!
In other words I must "grab" the arrow-key-presses and make them do what I want them to do, not the default action.
Thanks.
|
|
|
|
|
Override ProcessCMDKey method. It will let you do that.
जय हिंद
|
|
|
|
|
|
Nigel Mackay wrote: Ta
जय हिंद
|
|
|
|
|
Thanks
|
|
|
|
|
Oh..not a problem.
जय हिंद
|
|
|
|