Visualizzazione dei risultati da 1 a 4 su 4
  1. #1

    [VB.NET] Azione su pressione dell'INVIO

    Devo avviare una funziona alla pressione dell'INVIO

    Devo inserire il codice qui???

    Private Sub frmMia_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles Me.KeyPress

    End Sub


    Mi sapete dire il codice????

    Ciao e grazieeeeeeee
    i7 3770K --- Asus P8z77 --- 2x4Gb Corsair Vengeance 2133MHz--- Enermax NoiseTaker II 600w --- SSD: 128Gb Vertex 4 --- WD 1000Gb --- WD 2000Gb --- ASUS ATI5850 1Gb --- Case: Kandalf 25cm Fan --- Tastiera Logitech G15 --- Mouse Razer Copperhead

  2. #2
    codice:
    If e.KeyChar = vbCrLf Then
      'Codice
    End If
    Controlla che il carattere premuto sia Invio.

  3. #3
    Occhio...
    codice:
    If e.KeyChar = ControlChars.Cr Then
      'Codice
    End If
    Amaro C++, il gusto pieno dell'undefined behavior.

  4. #4
    Originariamente inviato da MItaly
    Occhio...
    codice:
    If e.KeyChar = ControlChars.Cr Then
      'Codice
    End If
    Dimenticavo...

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.