I have a simple windows form app in C# using VS2005. I have a pointer in a pictureBox which I move round the form in response to the arrow keys on the keyboard (using the KeyDown handler). The problem is I have some read-only textBoxes and when I press the arrow keys I end up with a cursor moving along the text in my textBox. How do I stop this. Also the response to the keypresses is very slow at times - I'm not sure if it is related to the textBox issue. Can anyone suggest a solution please.
Thanks for the reply. I pasted it into my form and changed the name of the textBox, but I get a NullReferenceException in the if statement. I'm not sure why!
I have added "e.Handled = true;" to my KeyDown event handler and that stops the cursor moving about and the slow response, but I still have the following problem:-
After I have opened the form, the first arrow key press seems to do nothing, the second selects all the text in one of my textBoxes and the third and subsequent presses move my pointer. How do I make all the arrow key presses just move the pointer?
I am developping application on Mobile Devices, using Compact FW. And I need to produce a unique string to ensure the licance managemant, preventing our application being copied and run in other mobie devices without licance password.
So I how can I get unique ID in Mobile devices ?
Or how can I get network adapter card MAC Address ? Since all device I am working on have their own embedded network card.
Discussion forums count on the voluntary time of experts helping out peers out of their own time and effort. If you would need a timely response along with service guarantees, I would recommend you should dial up the service provider/vendor of the product and get started from thereon.
Personally I've only ever used PowerCollections, and it's been perfectly reliable.
They aren't mutually exclusive, you can use both in one project.
My advice would be only use them when you have a requirement for something specifically more complex than the inbuilt collections, don't just use them for the sake of it.
For example - We identified the need for a complex dictionary containing items indexed in two ways. We looked at the available options and considered writing it ourselves. After review, the PowerCollections MultiDictionary fitted our requirements so we used that. We don't just use PowerCollections for everything though.