Log in

View Full Version : MS Visual Studio 2003 & C#


Typhoon
12-04-2005, 01:56 AM
I wanted to use the KeyDown function of my form. How do I find it? Or any function? Instead of typing it in directly...

JD Silver
12-04-2005, 04:02 AM
I'm have a SmartDevice Project open in front of me using Visual Studio 2005. To access the KeyDown event, and setup a handler, I opened the Properties Pane, then selected the form in the design window. Another way is to fick the form from the Listbox just below the caption of the properties pane.

On the Properties pane, press the "lightning bolt" button to select events. Scroll down the events until you reach keydown (or WM_KEYDOWN) and click in the edit area to create the handler.

I believe that it the steps are similar in Visual Studio 2003, which I use at work, but I only have the 2005 verison at home.

Happy Coding!

Typhoon
12-04-2005, 04:22 AM
You're right. Thanks. I wish I had picked up the MSDN collection at school.