si sei stato chiaro.
per il forum dovrebbe essere lo stesso per vb.net e vb (Visual Basic e .Net Framework).
io ti posso fornire una prova di concetto su come potresti fare, ma se lo vuoi adattare alle tue esigenze e non riesci ad inquadrarla dovresti postare il codice reale che hai scritto.
ora io non conosco le tue conoscenze, ma se c'è qualcosa che non ti è chiara domanda pure.codice:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Threading; namespace testHtmlIt { public delegate void Continua(); public partial class Form1 : Form { public string TestoDaPassare{ get; set; } Continua c = null; public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { Thread t = new Thread(startThread); t.Start(); Form2 f2 = new Form2(this); f2.Show(); } void startThread() { while (string.IsNullOrEmpty(TestoDaPassare)) ; if (this.InvokeRequired) { this.Invoke(new Continua(continua)); } else continua(); } void continua() { this.label1.Text = TestoDaPassare; TestoDaPassare = null; } } } using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace testHtmlIt { public partial class Form2 : Form { Form1 form1; public Form2() { InitializeComponent(); } public Form2(Form1 form1) { InitializeComponent(); this.form1 = form1; } private void button1_Click(object sender, EventArgs e) { form1.TestoDaPassare = this.textBox1.Text; this.Close(); } } }

Rispondi quotando