Questions tagged [keypreview]

20 questions
24
votes
5 answers

How to disable key preview in popup keyboard (not in main softkeyboard layout)?

It's easy to disable key previews: just call setPreviewEnabled(false) and these annoying tiny previews won't show up anymore. But if I attach a popup keyboard to any key then these previews will show up inside that popup: qwerty.xml:
Grrruk
  • 428
  • 3
  • 13
6
votes
3 answers

Is there a way to have a KeyPreview-like functionality when working with Frames?

I would like to have a KeyPreview functionality within Frames, I mean, that when the input (say, one of the controls of the frame is selected, or the mouse is inside) is in a frame (which would have several panels and other controls) then the keys…
Rodrigo Gómez
  • 1,079
  • 8
  • 24
4
votes
4 answers

Using barcode scanner with Delphi

I'm developing a POS (pet project) and I'm thinking of adding a bar code scanner to capture the sales faster. I do not have a scanner at the moment with me, and would like to ask some questions, as I'm stuck a bit. On the sales screen my initial…
Japster
  • 985
  • 6
  • 19
  • 38
4
votes
1 answer

What is meant by 'key preview' property of a form in MS Access?

I am right now programming in MS Access and while going through the properties of a form I have come across a property named 'key preview'. MS Access documentation tells that it is used to invoke keyboard events for forms before keyboard events for…
Jay
  • 1,210
  • 9
  • 28
  • 48
2
votes
3 answers

How to prevent screenshot from program

Is there a way to protect a program from any form of screenshoting by users? For example I do not want my program to be in a screenshot when user presses Print Screen key on the keyboard. Is it possible to make somehow a key preview in the program…
Dumbo
  • 13,555
  • 54
  • 184
  • 288
2
votes
2 answers

Prevent backspace in richtextbox using C# .net

I'm pulling my hair out over this one. Very simple windows forms program. I have a richtextbox and I want to prevent the backspace from doing anything in the richtextbox. Here is my code private void richTextBox1_KeyPress(object sender,…
Tom
  • 527
  • 1
  • 8
  • 28
2
votes
2 answers

customize soft keyboard key preview

I am working on soft keyboard. I had done with all of my functionality. But now i just need to change view of key preview when key is pressed. Currently my key preview is shown(default sample keyboard key preview) like shown in below…
Aniket
  • 2,204
  • 5
  • 34
  • 51
2
votes
0 answers

keyboard key icon preview

i have edited a custom keyboard that is in the sdk. well i am pretty much done. the only problem was i wanted not to show icon preview of some keys like space enter shift alt delete now i got how to disable the icon preview of these keys, but…
muditagarwal88
  • 548
  • 5
  • 13
1
vote
2 answers

C#: TextBox not receiving keys when using TextPreview on form

I am implementing a search function in a windows form in c#. I have set KeyPreviewto true on the form and have added an event handler for KeyDown so I can catch things like ctrl+f, esc and enter. I am catching these keys just fine and I'm able to…
mtmurdock
  • 12,756
  • 21
  • 65
  • 108
1
vote
4 answers

How do I close a form when the ESC key was hit, but only if no Control handled it?

I have a Form that closes itself when the ESC key is pressed, thanks to KeyPreview, ProcessKeyEventArgs, ProcessCmdKey or whatever. But I have a Control on that form that does very relevant things when ESC is pressed (it hides itself) and the Form…
Gabriel
  • 2,841
  • 4
  • 33
  • 43
1
vote
1 answer

Key handling with KeyPreview in TForm.OnKeyDown does not work with TListBox

A. Create a VCL Forms Application. B. Put a TListBox on the form and fill in some items at design-time, for example: C. Set the Form's KeyPreview property to True: D. In the Form's OnKeyDownevent-handler write this code: procedure…
user1580348
  • 5,721
  • 4
  • 43
  • 105
1
vote
2 answers

KeyPreview not handling KeyUp Event before control does

I have a form, myForm, which has KeyPreview set to true. The idea is that I want to capture CTRL-Enter and fire the submit button of the form, no matter what textbox (or other control) that may have focus. So I set up this method: private void…
Neil N
  • 24,862
  • 16
  • 85
  • 145
1
vote
2 answers

How to retrieve a string in a C# Key(*)Event that was inserted by scan? (Windows CE 5)

I am working on a Win CE 5 application that captures data scanned via barcode scanner. The application should support some "system-barcodes", predefinded barcodes that trigger functions of the application. Those barcodes have to work in the whole…
cutze
  • 93
  • 1
  • 8
1
vote
1 answer

Form keypreview doesn't work

i have create mainform (auto create form) and Form1 (available form). the method that i use to call form1 is like this procedure Tmainform.Button2Click(Sender: TObject); var f :…
AsepRoro
  • 353
  • 2
  • 6
  • 19
0
votes
1 answer

How do I create keypreview from InputMethodService using PopupWindow in android?

I am trying to create custom keyboard for android system with Buttons and it is working fine. But now I want to add key preview. I am new in android, plese help me if it is possible showing popupwindow from InputMethodService. Thank you in…
1
2