Click here to Skip to main content
15,667,847 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Hi ppl..short question! Pin
User 989707411-Jun-17 1:15
User 989707411-Jun-17 1:15 
All right man..well i changed the code a bit the NoteNum and bPlayDrum are not needed..
Now it looks like this:

VB
Private Sub Form1_KeyDown(sender As Object, e As KeyEventArgs) Handles Me.KeyDown
    Dim SDrum1 As String = ComboBox2.Text
    Dim keyPressed As String = e.KeyData.ToString

    Select Case keyPressed

        Case SDrum1
            Dim vol = volu.Value
            MidiPlayer.Play(New NoteOn(0, GeneralMidiPercussion.AcousticSnare, vol))
    End Select

End Sub


modified 7-Jan-19 21:02pm.

GeneralRe: Hi ppl..short question! Pin
User 989707411-Jun-17 5:13
User 989707411-Jun-17 5:13 
GeneralRe: Hi ppl..short question! Pin
Ralf Meier11-Jun-17 8:43
professionalRalf Meier11-Jun-17 8:43 
GeneralRe: Hi ppl..short question! Pin
User 989707411-Jun-17 8:47
User 989707411-Jun-17 8:47 
GeneralRe: Hi ppl..short question! Pin
Ralf Meier11-Jun-17 8:51
professionalRalf Meier11-Jun-17 8:51 
GeneralRe: Hi ppl..short question! Pin
User 989707411-Jun-17 9:07
User 989707411-Jun-17 9:07 
GeneralRe: Hi ppl..short question! Pin
User 989707412-Jun-17 1:35
User 989707412-Jun-17 1:35 
GeneralRe: Hi ppl..short question! Pin
Ralf Meier12-Jun-17 1:41
professionalRalf Meier12-Jun-17 1:41 
GeneralRe: Hi ppl..short question! Pin
User 989707412-Jun-17 1:47
User 989707412-Jun-17 1:47 
GeneralRe: Hi ppl..short question! Pin
User 989707412-Jun-17 1:50
User 989707412-Jun-17 1:50 
GeneralRe: Hi ppl..short question! Pin
Ralf Meier12-Jun-17 2:04
professionalRalf Meier12-Jun-17 2:04 
GeneralRe: Hi ppl..short question! Pin
User 989707412-Jun-17 2:17
User 989707412-Jun-17 2:17 
QuestionTo get the contionus Bill Number Pin
Annapurna anu2-Jun-17 20:18
Annapurna anu2-Jun-17 20:18 
AnswerRe: To get the contionus Bill Number Pin
Richard MacCutchan2-Jun-17 22:22
mveRichard MacCutchan2-Jun-17 22:22 
SuggestionRe: To get the contionus Bill Number Pin
Richard Deeming5-Jun-17 8:32
mveRichard Deeming5-Jun-17 8:32 
AnswerRe: To get the contionus Bill Number Pin
jsc4228-Jul-17 7:41
professionaljsc4228-Jul-17 7:41 
QuestionNeed real time list of on/off computers on lan amongst other things Pin
Member 130478152-Jun-17 19:13
Member 130478152-Jun-17 19:13 
AnswerRe: Need real time list of on/off computers on lan amongst other things Pin
OriginalGriff2-Jun-17 19:18
mvaOriginalGriff2-Jun-17 19:18 
AnswerRe: Need real time list of on/off computers on lan amongst other things Pin
Dave Kreskowiak3-Jun-17 5:19
mveDave Kreskowiak3-Jun-17 5:19 
QuestionBarcode commands to Zebra printer Pin
Randy Crockett1-Jun-17 13:34
Randy Crockett1-Jun-17 13:34 
SuggestionRe: Barcode commands to Zebra printer Pin
Ralf Meier1-Jun-17 19:41
professionalRalf Meier1-Jun-17 19:41 
GeneralRe: Barcode commands to Zebra printer Pin
Randy Crockett2-Jun-17 8:05
Randy Crockett2-Jun-17 8:05 
AnswerRe: Barcode commands to Zebra printer Pin
Richard Deeming2-Jun-17 1:11
mveRichard Deeming2-Jun-17 1:11 
GeneralRe: Barcode commands to Zebra printer Pin
Randy Crockett2-Jun-17 8:06
Randy Crockett2-Jun-17 8:06 
Questionsending message plugins Pin
Member 1322979929-May-17 14:50
Member 1322979929-May-17 14:50 

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.