Probleme de textbox!!!!!

Résolu
marycool1 Messages postés 30 Date d'inscription samedi 26 février 2005 Statut Membre Dernière intervention 24 juin 2007 - 6 juil. 2005 à 20:34
marycool1 Messages postés 30 Date d'inscription samedi 26 février 2005 Statut Membre Dernière intervention 24 juin 2007 - 6 juil. 2005 à 22:16
Salut!
Bon, j'ai deux problemes:
1- je veux desactiver le beep sonore lorsque je clique sur entrée (dans le textbox, évenement : keyUp)!
2- J'utilise un textbox multiligne, bref, je l'affecte un texte (très long), mais je veux que la scrollbarre soit en bas!!!
C'est presk comme la zone des messages MSN!
Lorsqu'on tape le msg, on l'envoie, puis on peut voir le dernier!!

Help me pls!
tks d'avantage!!

4 réponses

Gobillot Messages postés 3140 Date d'inscription vendredi 14 mai 2004 Statut Membre Dernière intervention 11 mars 2019 34
6 juil. 2005 à 21:30
1 -

Private Sub Text1_KeyPress(KeyAscii As Integer)

If KeyAscii 13 Then KeyAscii 0

End Sub





2 -

Private Sub Text1_Change()

Text1.SelStart = Len(Text1.Text)

End Sub




Daniel
3
Gobillot Messages postés 3140 Date d'inscription vendredi 14 mai 2004 Statut Membre Dernière intervention 11 mars 2019 34
6 juil. 2005 à 22:10
tu peut lui donner le Focus provisoirement









Private Sub Text1_Change()

TextBox1.Text = Text1.Text

' DoEvents

TextBox1.SelStart = Len(TextBox1.Text)

TextBox1.SetFocus

' DoEvents

Text1.SetFocus

End Sub


Daniel
3
Gobillot Messages postés 3140 Date d'inscription vendredi 14 mai 2004 Statut Membre Dernière intervention 11 mars 2019 34
6 juil. 2005 à 21:53
faut que le textBox ait le Focus, et comme ça la Scrollbar apparaît.



TextBox1 = TextBox1 & SuiteTexte & vbCrLf



TextBox1.SetFocus


Daniel
0
marycool1 Messages postés 30 Date d'inscription samedi 26 février 2005 Statut Membre Dernière intervention 24 juin 2007
6 juil. 2005 à 22:16
wi!!! ça marche!
Bravo!
0
Rejoignez-nous