Advertisement
vladim_ch

Untitled

May 19th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.90 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10.  
  11. namespace WindowsFormsApp1
  12. {
  13.    
  14.     public partial class Form3 : Form
  15.     {   public String txt1; //объявление ссылок
  16.         public String txt2;
  17.         public String txt3;
  18.  
  19.        
  20.         public Form3(string txt1, string txt2, string txt3)
  21.         {
  22.             this.txt1 = txt1;
  23.             this.txt2 = txt2;
  24.             this.txt3 = txt3;
  25.             InitializeComponent();
  26.         }
  27.  
  28.         private void Form3_Load(object sender, EventArgs e)
  29.         {
  30.             List();
  31.  
  32.         }
  33.         public void List()
  34.         {
  35.             listBox1.Items.Add(txt1+ " " + txt2 + " " + txt3); //запись в listBox
  36.          
  37.  
  38.         }
  39.     }
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement