Torna al Thread

Public Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim newTab as new TabPage Dim RichText as new RichTextBox .... Proprieta della RichTextBox .... Me.Controls.Add(RichText) AddHandler RichText.TextChanged, AddressOf RichText_TextChanged End Sub Public Sub RichText_TextChanged(ByVal sender As System.Object, ByVal e As System.Windows.Forms.EventArgs) Dim LineT as Integer = RichText.Lines.Length //Qui mi dice che RichText non è dichiarato ... Resto dell'evento TextChanged End Sub Dovrei dichiare RichText come globale?? non saprei..o ci sono altri metodi per farlo?? Grazie mille ciao!!
Copyright © dotNetHell.it 2002-2024
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5