Bonjour à tous,

J'ai écrit un petit code permettant d'afficher du texte dans une textbox, et ça ne marche pas, j'ai crée une windowsform Form1 dans laquelle j'ai mis une textbox avec comme propriété name : TB1 voici le code écrit...
Merci d'avance pour vos éclairssicements :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
        Dim s As String
        Dim tstForm As New Form1()
 
        s = "Bonjour"
        tstForm.TB1.Text() = s
 
        tstForm.Show()
        tstForm.Refresh()