-1

enter image description here

enter image description here

this listbox value pass in Form 4 If I Will Select i Will Try This Command

  Form4 f4 = new Form4();
  F4.label.Text = lisbox1.Selectitem.Tostring();

I Will Select Control SelectIndexChanger

this Is label Form4 select listbox value Show here

VietDD
  • 1,048
  • 2
  • 12
  • 12
  • 1
    The (imho) easiest and cleanest way to share this information is by having the forms share a model. There are many examples about MVC in Winforms, just hack it into your search engine of choice. – Fildor Oct 16 '20 at 08:28
  • For send value between forms, see this post https://stackoverflow.com/q/60292238/2133965 – VietDD Oct 16 '20 at 16:05

1 Answers1

2

You can pass parameters through the constructor

Form 4

public partial class Form4 : Form
    {
        public Form4(string value)
        {
            F4.label.Text = value;
        }
    }

In Form 1

 Form4 form = new Form4(lisbox1.Selectitem.Tostring());
 form.ShowDialog();

Hope to help you