Click here to Skip to main content
15,904,351 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Mdi form and ToolStripContainer Pin
Dave Kreskowiak14-May-09 2:02
mveDave Kreskowiak14-May-09 2:02 
GeneralRe: Mdi form and ToolStripContainer Pin
Samir Ibrahim14-May-09 2:28
Samir Ibrahim14-May-09 2:28 
Questionmultiple keypresses Pin
TheMrProgrammer13-May-09 4:06
TheMrProgrammer13-May-09 4:06 
AnswerRe: multiple keypresses Pin
Henry Minute13-May-09 4:58
Henry Minute13-May-09 4:58 
AnswerRe: multiple keypresses Pin
nlarson1113-May-09 8:02
nlarson1113-May-09 8:02 
QuestionRe: multiple keypresses Pin
JR21213-May-09 19:40
JR21213-May-09 19:40 
AnswerRe: multiple keypresses Pin
Dalek Dave13-May-09 21:38
professionalDalek Dave13-May-09 21:38 
GeneralRe: multiple keypresses Pin
Johan Hakkesteegt13-May-09 22:14
Johan Hakkesteegt13-May-09 22:14 
I adapted Larson's code just slightly (you need to disable TextBox1 by the way):
Private WithEvents _KeyDown As New List(Of Int16)

Private Sub TextBox1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
    If Not _KeyDown.Contains(e.KeyCode) Then
        _KeyDown.Add(e.KeyCode)
        TextBox1.Text &= Chr(e.KeyCode)
    End If
End Sub

Private Sub TextBox1_KeyUp(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyUp
    If _KeyDown.Contains(e.KeyCode) Then
        _KeyDown.Remove(e.KeyCode)
        TextBox1.Text = TextBox1.Text.Remove(TextBox1.Text.IndexOf(Chr(e.KeyCode)), 1)
    End If
End Sub


I managed to press more than 2 keys, but not all combos work, and some combos act like alt+ctrl etc. and other combos somehow work without a hitch.

My advice is free, and you may get what you paid for.

AnswerRe: multiple keypresses Pin
Dave Kreskowiak14-May-09 1:59
mveDave Kreskowiak14-May-09 1:59 
GeneralRe: multiple keypresses Pin
JR21214-May-09 3:03
JR21214-May-09 3:03 
QuestionGet file path Pin
rmedo13-May-09 2:32
rmedo13-May-09 2:32 
AnswerRe: Get file path Pin
Henry Minute13-May-09 2:36
Henry Minute13-May-09 2:36 
GeneralRe: Get file path Pin
rmedo13-May-09 2:44
rmedo13-May-09 2:44 
GeneralRe: Get file path Pin
Henry Minute13-May-09 2:54
Henry Minute13-May-09 2:54 
GeneralRe: Get file path Pin
rmedo13-May-09 20:13
rmedo13-May-09 20:13 
GeneralRe: Get file path Pin
Henry Minute13-May-09 23:13
Henry Minute13-May-09 23:13 
GeneralRe: Get file path Pin
rmedo14-May-09 0:13
rmedo14-May-09 0:13 
GeneralRe: Get file path Pin
Henry Minute14-May-09 0:20
Henry Minute14-May-09 0:20 
GeneralRe: Get file path Pin
rmedo14-May-09 0:23
rmedo14-May-09 0:23 
QuestionRE:Want to read a txt file from the second line only. Pin
Lee Mwangi13-May-09 2:14
Lee Mwangi13-May-09 2:14 
AnswerRe: RE:Want to read a txt file from the second line only. Pin
riced13-May-09 2:31
riced13-May-09 2:31 
AnswerRe: RE:Want to read a txt file from the second line only. Pin
Anoop Brijmohun13-May-09 2:31
Anoop Brijmohun13-May-09 2:31 
AnswerRe: RE:Want to read a txt file from the second line only. Pin
Dave Kreskowiak13-May-09 4:01
mveDave Kreskowiak13-May-09 4:01 
GeneralRe: RE:Want to read a txt file from the second line only. Pin
Jon_Boy13-May-09 9:06
Jon_Boy13-May-09 9:06 
AnswerRe: RE:Want to read a txt file from the second line only. Pin
Lee Mwangi13-May-09 23:43
Lee Mwangi13-May-09 23:43 

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.