Click here to Skip to main content
15,913,910 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: positioning a textbox in the AXMSFlexgrid cell Pin
Member 410891213-Aug-10 6:10
Member 410891213-Aug-10 6:10 
Questiongrid view control Pin
kadkir27-Oct-07 0:21
kadkir27-Oct-07 0:21 
AnswerRe: grid view control Pin
Abhijit Jana27-Oct-07 1:21
professionalAbhijit Jana27-Oct-07 1:21 
QuestionText Input Detection Pin
Absenm26-Oct-07 22:55
Absenm26-Oct-07 22:55 
AnswerRe: Text Input Detection Pin
AliAmjad27-Oct-07 2:30
AliAmjad27-Oct-07 2:30 
AnswerRe: Text Input Detection Pin
Dave Kreskowiak27-Oct-07 3:47
mveDave Kreskowiak27-Oct-07 3:47 
GeneralRe: Text Input Detection Pin
Absenm29-Oct-07 13:55
Absenm29-Oct-07 13:55 
GeneralRe: Text Input Detection Pin
Dave Kreskowiak29-Oct-07 14:38
mveDave Kreskowiak29-Oct-07 14:38 
Absenm wrote:
If (Me.KeyPreview = "q") Then


Ummm... You might want to lookup the docs on KeyPreview. It's not a property that get's the key, it's a True/False property you set to turn it on.

The KeyEventArgs has the key that is beind pressed, in its KeyCode property.
Private Sub Form1_KeyDown1(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
    If e.KeyCode = Keys.Q Then
        MsgBox("q")
        ' This line stops the key from beings seen by the control with the focus.
        e.Handled = True
    End If
End Sub


A guide to posting questions on CodeProject[^]

Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007


GeneralRe: Text Input Detection Pin
Absenm29-Oct-07 15:30
Absenm29-Oct-07 15:30 
GeneralRe: Text Input Detection Pin
Dave Kreskowiak29-Oct-07 18:12
mveDave Kreskowiak29-Oct-07 18:12 
QuestionHow to generate serial hard disk? Pin
sovysim26-Oct-07 22:47
sovysim26-Oct-07 22:47 
AnswerRe: How to generate serial hard disk? Pin
Abhijit Jana27-Oct-07 1:20
professionalAbhijit Jana27-Oct-07 1:20 
AnswerRe: How to generate serial hard disk? Pin
Dave Kreskowiak27-Oct-07 3:43
mveDave Kreskowiak27-Oct-07 3:43 
QuestionRefreshing a drawing Pin
twsted f826-Oct-07 21:37
twsted f826-Oct-07 21:37 
AnswerRe: Refreshing a drawing Pin
AliAmjad27-Oct-07 2:37
AliAmjad27-Oct-07 2:37 
AnswerRe: Refreshing a drawing Pin
Luc Pattyn27-Oct-07 3:35
sitebuilderLuc Pattyn27-Oct-07 3:35 
QuestionHow to program a digital persona fingerprint scanner in VB? [modified] Pin
meki_211826-Oct-07 18:37
meki_211826-Oct-07 18:37 
AnswerRe: How to program a digital persona fingerprint scanner in VB? Pin
aransiola27-Oct-07 0:59
aransiola27-Oct-07 0:59 
GeneralRe: How to program a digital persona fingerprint scanner in VB? Pin
meki_211827-Oct-07 6:13
meki_211827-Oct-07 6:13 
GeneralRe: How to program a digital persona fingerprint scanner in VB? Pin
Dave Kreskowiak27-Oct-07 9:19
mveDave Kreskowiak27-Oct-07 9:19 
GeneralRe: How to program a digital persona fingerprint scanner in VB? Pin
aransiola27-Oct-07 9:32
aransiola27-Oct-07 9:32 
GeneralRe: How to program a digital persona fingerprint scanner in VB? Pin
meki_211828-Oct-07 3:55
meki_211828-Oct-07 3:55 
AnswerRe: How to program a digital persona fingerprint scanner in VB? Pin
Dave Kreskowiak27-Oct-07 3:41
mveDave Kreskowiak27-Oct-07 3:41 
Questionsearching a formatted Listbox Pin
iSeeGhosts26-Oct-07 16:47
iSeeGhosts26-Oct-07 16:47 
AnswerRe: searching a formatted Listbox Pin
Luc Pattyn26-Oct-07 16:59
sitebuilderLuc Pattyn26-Oct-07 16:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.