public Next_forn() { InitializeComponent(); server.Service1 server = new server.Service1(); string[] st = server.GetText(); for (int i = 0; i < st.Length; i++) { cmbItems.Items.Add(st[i]); } }
private void cmdnext_Click(object sender, EventArgs e) { server.Service1 server = new server.Service1(); server.SetText(txtText.Text); Next_forn Nf = new Next_forn(); Nf.Show(); this.Show(); this.Hide(); }