begin process at 2008 08 22 03:38:02
1 229 768 membres
39 nouveaux aujourd'hui
14 267 membres club

Vous ne trouvez pas de réponse à votre problème ? Alors posez la question dans le forum.
Souvenez-vous qu'il n'y a jamais de question bête, mais rester dans l'ignorance parce que l'on n'ose pas poser une question, ça c'est une erreur !

SAISIE NUMÉRIQUE SANS SUB EN 1 APPEL


Information sur la source

Catégorie :API Niveau : Débutant Date de création : 27/08/2002 Date de mise à jour : 28/08/2002 21:57:27 Vu : 1 468

Note :
5 / 10 - par 1 personne
5,00 / 10

  • 1

  • 2

  • 3

  • 4

  • 5

  • 6

  • 7

  • 8

  • 9

  • 10

Commentaire sur cette source (2)
Ajouter un commentaire et/ou une note

Description

oblige la saisie numeric sans être obliger de tester la saisie

Source

  • Private Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long
  • Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
  • Const GWL_STYLE = (-16)
  • ' Restricts input to the edit control to digits only
  • Const ES_NUMBER = &H2000
  • ' et dans le form load
  • 'Restrict Min, Max and Value fields to numbers only
  • SetWindowLong txtValue.hwnd, GWL_STYLE, GetWindowLong(txtValue.hwnd, GWL_STYLE) Or ES_NUMBER
Private Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long
Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long

Const GWL_STYLE = (-16)
' Restricts input to the edit control to digits only
Const ES_NUMBER = &H2000

' et dans le form load
  'Restrict Min, Max and Value fields to numbers only
  SetWindowLong txtValue.hwnd, GWL_STYLE, GetWindowLong(txtValue.hwnd, GWL_STYLE) Or ES_NUMBER

 

Conclusion

cpasdemoi C trouver dans un source de CCRP sur http://www.mvps.org/ccrp/
thank Crazyht
  • signaler à un administrateur
    Commentaire de Crazyht le 28/08/2002 11:01:55 administrateur CS

    Mouaip t'aurai pu au moins traduire ce que tu as Pomper sur http://www.vb2themax.com/ et dire que CT pas de toi :(

  • signaler à un administrateur
    Commentaire de Alan71 le 28/08/2002 20:09:32

    ch'comprend pas tout la...

Ajouter un commentaire

Pub



Appels d'offres

CalendriCode

Août 2008
LMMJVSD
    123
45678910
11121314151617
18192021222324
25262728293031

Boutique

Boutique de goodies CodeS-SourceS