Bonjour
Voilà, je travaille avec un MDI, et voudrais afficher le contenu d'un fileStream de ma form1 sur
un textbox de ma form2.
Voici le code:
Merci
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12 Form2 Form2; private void button2_Click(object sender, EventArgs e) { Form2= new Form2(); FileStream fs = new FileStream("Membres.Bin", FileMode.Open, FileAccess.Read, FileShare.None); BinaryReader br = new BinaryReader(fs); br.Close(); fs.Close(); textBox1.Text = "Member.bin"; }
Partager