Advertisement

05.15.2008 at 10:20PM PDT, ID: 23407455
[x]
Attachment Details

Using keycode with and keypreview  shows all F(unction)   keys  except  F7   key

Asked by BIAPRO in Visual Basic Programming

Tags: microsoft, vb6, professional

I have keypreview  true,  then want to intercept de F-keys is pressed.
It works for F1/2/3/4/5/6/8/9/10/11/12   , but can't figger out why only F7 does nothing (keybord is OK!)

Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
'======================
      If KeyCode >= 112 And KeyCode <= 123 Then   F$ = "F" &  Trim(str$(KeyCode - 112))
end subStart Free Trial
 
Loading Advertisement...
 
[+][-]05.15.2008 at 11:34PM PDT, ID: 21580423

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]05.15.2008 at 11:37PM PDT, ID: 21580442

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Visual Basic Programming
Tags: microsoft, vb6, professional
Sign Up Now!
Solution Provided By: m_kristofer
Participating Experts: 3
Solution Grade: B
 
 
[+][-]05.15.2008 at 11:44PM PDT, ID: 21580472

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.16.2008 at 07:36AM PDT, ID: 21583112

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628