RichTextBox

Résolu/Fermé
majdeline88 Messages postés 69 Date d'inscription dimanche 22 avril 2012 Statut Membre Dernière intervention 24 avril 2017 - Modifié par majdeline88 le 4/12/2015 à 19:09
majdeline88 Messages postés 69 Date d'inscription dimanche 22 avril 2012 Statut Membre Dernière intervention 24 avril 2017 - 8 déc. 2015 à 15:56
Bonjour,

j'essaye de faire un retour à la ligne après "ligne" :
Liste.SelectedText = ligne

mais \n ne marche pas.
Liste c'est un RichTextBox

Private Sub Liste_TextChanged(sender As Object, e As EventArgs) Handles CheckToolStripMenuItem.Click
Dim nbr_ligne As Integer = 0
Dim ligne As String
Dim sr As New StreamReader("DESKTOP-4BL4125.txt")
While sr.Peek <> -1
nbr_ligne += 1
ligne = sr.ReadLine()
If IsNumeric(ligne) Then
Liste.SelectedText = ligne
End If
End While

Return

Merci :)

1 réponse

cs_Le Pivert Messages postés 7903 Date d'inscription jeudi 13 septembre 2007 Statut Contributeur Dernière intervention 11 mars 2024 728
5 déc. 2015 à 08:24
Bonjour,

En VB.Net:

Environment.NewLine

1
majdeline88 Messages postés 69 Date d'inscription dimanche 22 avril 2012 Statut Membre Dernière intervention 24 avril 2017 1
8 déc. 2015 à 15:56
Merci :)
0