|
It sounds as though you are trying to do the same thing[^] I am.
Using the generic HID reader from this page[^], and feeding it the vendor id and product id (which can be found in device manger), I get "The device is a system keyboard. Windows 2000 and Windows XP obtain exclusive access to Input and Output reports for this[sic] devices. Applications can access Feature reports only."
Which, frankly, is a bit of a blow.
Maybe there is another possible approach?
|
|
|
|
|
Since you can use DirectX to highjack a normal keyboard, maybe it works here as well?
|
|
|
|
|
Yes you can ... this works brilliantly !
|
|
|
|
|
i need a help with my image processing application.
I have taken a image as the input and need to run my algorithm (which i have coded)throughout the image.
i need to take a 3x3 image pixel set for processing where each pixel is taken as x, y...
can some one guide me how to do this please??
Thanks
|
|
|
|
|
Read CG's image processing articles[^]. There's a lot of information there. You might find what you need.
जय हिंद
|
|
|
|
|
How do I change this code to VB
Address shipAdd = getUserAddress();
upsRates uRate = readXML(getXMlhttp(sourceAddress, shipAdd, ddlUPS.SelectedValue));
if (uRate.StatusCode == "1") // Status OK
{
UPSCharges = uRate.Rate;
Label2.Text = UPSCharges;
Session["ShippingType"] = ddlUPS.SelectedItem.Text;
}
else
{
ddlUPS.SelectedIndex = 0;
UPSCharges = "0";
Label2.Text = UPSCharges;
Label2.Text = uRate.Error;
}
}
else
{
Label2.Text = "";
UPSCharges = "0";
}
try
{
Session["shipping"] = Convert.ToDecimal(UPSCharges);
double shp = Convert.ToDouble(Session["shipping"].ToString());
double amt = Convert.ToDouble(Session["amount"].ToString());
//Array grandtot=grandtotallbl.Text.Split('$');
//grandtotallbl.Text ="Grand Total : $ " + Convert.ToDouble(grandtot.GetValue(1).ToString() + shp);
grandtotallbl.Text = "Grand Total: $ " + Convert.ToDecimal((shp + amt)).ToString();
}
|
|
|
|
|
Lots of ways[^].
You can also do that manually. Even better, create a dll and use it in VB code.
जय हिंद
|
|
|
|
|
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.
|
|
|
|