Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- namespace WindowsFormsApp1
- {
- public partial class Form3 : Form
- { public String txt1; //объявление ссылок
- public String txt2;
- public String txt3;
- public Form3(string txt1, string txt2, string txt3)
- {
- this.txt1 = txt1;
- this.txt2 = txt2;
- this.txt3 = txt3;
- InitializeComponent();
- }
- private void Form3_Load(object sender, EventArgs e)
- {
- List();
- }
- public void List()
- {
- listBox1.Items.Add(txt1+ " " + txt2 + " " + txt3); //запись в listBox
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement