I wrote a program in Borland Delphi. Hangman. I would like to know how I can make it possible for the user to click on the "A" key on the keyboard and let the program choose that image and fill in the letter the user choose without the user having to click on the image.
In Delphi, the form, and many controls have events for key presses OnKeyDown, OnKeyPress, OnKeyUp, etc. the Key is passed in as a Word value, but when cast with the ?Chr(Key)? function it will be come a Character from the keyboard. As for writing the text out to the screen, TextRect(Rect: TRect; X, Y: Integer; const Text: string); will let you write the text anywhere on your canvas that you want to and that should get you started.
how to creat a system in visual basic like as electronic book system and give example and code...
(More)
how to creat a system in visual basic like as electronic book system and give example and code thank you ...? im begginer