SHARE
TWEET

Untitled

a guest Feb 27th, 2020 91 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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 ZivkovicDj27022020
  12. {
  13.     public partial class Druga : Form
  14.     {
  15.         public Druga()
  16.         {
  17.             InitializeComponent();
  18.         }
  19.  
  20.         private void button1_Click(object sender, EventArgs e)
  21.         {
  22.             string input = textBox1.Text;
  23.             string[] words = input.Split(' ');
  24.             string ime = words[0];
  25.             string prezime = words[1];
  26.             listBox1.Items.Add(ime);
  27.             listBox2.Items.Add(prezime);
  28.         }
  29.  
  30.         private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
  31.         {
  32.  
  33.         }
  34.     }
  35. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top