|
Im taking my own machine... Basically, I need to allow multiple mouse, but since windows wouldnt allow this normally, so Im thinking of writing an application (fully transparent) which be able to track the mouse movement/block input so that I can draw another fake pointer to act as second mouse... Not sure if this make much sense??
|
|
|
|
|
|
Hi,
I am using Microsoft Indexing services in C#
everything doing well but i have no idea
How to Used wild card Character to extract/Find Content of Documents.
for example Like operator usage in Contents column.
This is Simple Query to used like operator in FileName.
SELECT * FROM WEBINFO Where filename like '%pdf'
But I want to used like operator in contents search column.
SELECT * FROM WEBINFO Where Contents like 'abc%'
abc
abcd.
abcxyz.
abcddd.
|
|
|
|
|
You may be able to cheat and use:
<s>SELECT * FROM WEBINFO Where REVERSE(filename) like '%pdf'</s>
Fixed that
SELECT * FROM WEBINFO Where REVERSE(filename) like 'fdp%'
Last modified: 2hrs 11mins after originally posted --
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
I have mutiple files in a catalog.
i want to find files content/keyword but Using Like Operator/Wildcard.
|
|
|
|
|
I had a BHO.
When a web page is opened on IE, I try to replace the HTMLElement's text using
foreach (IHTMLElement HtmlElemen in (IHTMLElementCollection)document.body.all)
{
try
{
HtmlElemen.GetType().GetProperty("innerText").SetValue(HtmlElemen, "NewText", null);
}
catch(Exception e)
{
System.Windows.Forms.MessageBox.Show("Message:" + e.Message );
}
}
In some PC's the html element's text is replaced successfully with "Newtext",
but in some PC's it is not replacing.
And an exception message is obtained "Object reference not set to an instance of an object. "
How to fix this exception?
foreach (IHTMLElement HtmlElemen in (IHTMLElementCollection)document.body.all)
{
try
{
Type type =HtmlElemen.GetType();
if(type !=null)
{
type.GetProperty("innerText").SetValue(HtmlElemen, "NewText", null);
}
// same way check Innertext also has not null reference then set value to taht.
}
catch(Exception e)
{
System.Windows.Forms.MessageBox.Show("Message:" + e.Message );
}
}
If I try this code , a message(exception ) is obtained.
Message:Exception has been thrown by the target of an invocation.
I think, I was missing some assembly, what is it to get executed.
May anyone help?
|
|
|
|
|
Hi,
I don't think this is a problem with a missing assembly. As you already mentioned you should check wether the innerText-Property is set or not.
Do this by:
if(null != type) {
if(null != type.GetProperty("innerText")) {
...
}
}
That should fix the problem.
Regards
Sebastian
|
|
|
|
|
thanks for reply
InnerText is not set, as I try to set the value it throws an exception.
How to fix, Can you explain with some code?
|
|
|
|
|
No it is not that InnerText is not set, it is that the Property "InnerText" for the object does not exists. You are using reflection to get the type of your htmlelement and it is possible that this type does not provide an InnerText-Property. There is nothing to fix, you only have to pay attention to this by using the code I provided before.
|
|
|
|
|
but the same code is running successfully on other PC.
Why not on this?
Now How to fix it finally,
Is there any other way, I can replace the innertext of an htmlelement
|
|
|
|
|
Do you use the same input (I guess a HTML-page) at every PC?
|
|
|
|
|
yes, the only difference is in the PC which has visualStudio, it is successfully sets the innerText Value of an HTMLElement.
I don't understand where I'm doing wrong?
|
|
|
|
|
Is it possible, that you could post a bit more of your code, e.g. the point where you get the elements from etc. Maybe this will guide us to the point of failure...
|
|
|
|
|
|
Hi Dears,
Kindly let me know the definition of NON-BLOCKING Socket. "in short"
Thank you in advance
(Riaz)
|
|
|
|
|
M Riaz Bashir wrote: Kindly let me know the definition of NON-BLOCKING Socket.
NON-BLOCKING Socket
|
|
|
|
|
Hi
I make any File in PC, and I transfer him to PPC (Windows mobile)
How I can get the Modified date of this file ?
I try this:
DateTime GG;
FileInfo H = new FileInfo(@"c:\License.txt");
GG = H.CreationTime;
GG = H.LastWriteTime;
GG = File.GetCreationTime(@"c:\License.txt");
GG = File.GetLastAccessTime(@"c:\License.txt");
GG = File.GetLastWriteTime(@"c:\License.txt");
but I always get the Today date and time
thank's in advance
|
|
|
|
|
Yes the output is correct!!
because you have transferred the file only today!!! so that is the latest write time!!!
Have a Happy Coding.....
|
|
|
|
|
thank's for the help
What I can do to see the real creation date of the file ?
|
|
|
|
|
That is quite difficult to do AFAIK!
You can try implement this logic with the corresponding code!
1.Before File Transfer operation to your mobile device
--------------> copy the present Created Time, LastWrite time and lastAccess time to a temporary variable!
2.Copy the File!
3.And reset the Created Time, LastWrite Time and LastAccess Time from your temporary variable! since these are properties, you can able to set them! i believe!!!
So if your copy function performs all this three steps, then you will always get the creation date of file as same as your computer!!!!
It may work!!!
Have a Happy Coding.....
|
|
|
|
|
Hay..
I hava a windows based c# application project.. which i hav to switch to Arabic when user select arabic option when login.....
help pls
|
|
|
|
|
|
pls, i need code that will generate numbers,from 1 to 40 per row without repeatition.
It must generate the numbers without repeating any number in a row and any row must not repeat it self in the table. so it will generate all possible numbers per rows,in such a way that if i write down numbers 1 to 40 numbers randomly without reapeting any number row, i must find it in the one i generate from the winform gui and C# code.And another button will be able to print preview the table.
[confused]
thanks for ur assistance.
OLUMADE DAMILARE
|
|
|
|
|
Winforms has nothing to do with it.
The way to get a sequence without repeats is, you fill a list with the numbers 1-40. Then you use a random number generator to pick a number out of that sequence. Then you remove thant number. So, the second time, you need a number between 0 and 38 ( because the sequence is 0 indexed ). So, every time you generate a result, you remove it from the possible result pool.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Ah, there you are, I figured you'd show up eventually.
See here[^].
However, if you want several unique sequences of the same values, you may need to go a step further.
Add:
As you're generating a sequence, make a base-40 string of it. Have a HashSet<string> to hold the sequences you've already generated. If the sequence is a duplicate, try again; if not, add it to the HashSet and return it.
You can generate a base-40 digit with "0123456789ABCDEFGHIJKLMNOPQRSTUVQXYZabcd" [ i ] and append it to a StringBuilder .
modified on Sunday, July 26, 2009 8:37 PM
|
|
|
|