---
title: "How to pass combobox value from windows form EdirRow to windows form Form1 where click button"  
description: "How to pass combobox value from windows form EdirRow to windows form Form1 where click button"  
author: "Abeer Shlby"  
published: 2017-03-12  
updated: 2017-03-12  
canonical: https://www.mindstick.com/forum/34274/how-to-pass-combobox-value-from-windows-form-edirrow-to-windows-form-form1-where-click-button  
category: "c#"  
tags: ["c#", ".net"]  
reading_time: 2 minutes  

---

# How to pass combobox value from windows form EdirRow to windows form Form1 where click button

I have two [windows](https://www.mindstick.com/articles/311752/how-to-install-and-use-the-google-wifi-software-on-a-windows-or-mac-computer) form\
In form1 i have combobox1 [drop down](https://www.mindstick.com/forum/263/drop-down-list-problem) [style](https://www.mindstick.com/articles/126300/apa-citation-style-get-to-know-about-it-for-your-next-assignment):drop down listIn Edit Row formI have [combobox](https://www.mindstick.com/articles/57/display-record-according-to-combobox-selection-in-csharp-dot-net) and [button](https://www.mindstick.com/articles/63/how-to-add-button-in-datagridview-in-csharp-dot-net) in Edit Row form\
**Actually i need when click on button 1 on windows form Edit Row** **get [selected value](https://www.mindstick.com/forum/525/get-selected-value-of-datagridviewcomboboxcolumn) of combobox1 from windows form Edit Row to windows form Form1**\
Details\
form1_load\

> ```
> var dataSourceAr = new List<Country>(); dataSourceAr.Add(new Country() { Name = "اختر دوله", Value = 0 }); dataSourceAr.Add(new Country() { Name = "الاردن", Value = 1 }); dataSourceAr.Add(new Country() { Name = "الإمارات", Value = 2 }); var dataSourceEn = new List<Country>(); dataSourceEn.Add(new Country() { Name = "SelectCountry", Value = 0 }); dataSourceEn.Add(new Country() { Name = "Jordon", Value = 1 }); dataSourceEn.Add(new Country() { Name = "Emarate ", Value = 2 }); var combined = dataSourceEn.Join(dataSourceAr, en => en.Value, ar => ar.Value, (en, ar) => new { Value = en.Value, Name = $"{ar.Name} - {en.Name}" }).ToList(); comboBox1.DataSource = combined; comboBox1.DisplayMember = "Name"; comboBox1.ValueMember = "Value";public class Country    {        public string Name { get; set; }        public int Value { get; set; }    }under button 1 click on windows form Edit Row that i need to pass selected value from it to form1 comboboxprivate void button1_Click(object sender, EventArgs e)        {                  Form1 frm = new Form1();                var cb1 = frm.comboBox1;                var index1 = cb1.FindString(comboBox1.Text);                cb1.Text = index1.ToString();                frm.Show();                                    }
> ```

\
when click button value of combobox1 from Edit form will transfere to [second](https://answers.mindstick.com/qa/41761/how-did-the-second-industrial-revolution-influence-women-s-roles-in-society) form Form1

> ```
> Edit Row load form// same values and code of  combobox1 in Form1
> ```
>
> \

[Result](https://www.mindstick.com/blog/12011/advantages-of-getting-result-oriented-seo-from-an-agency) of code above when click button it show form1 but value of combobox1 selected from Edit Row form not [select](https://www.mindstick.com/forum/160534/orderby-then-select-vs-select-then-orderby-performance) same value to another combox in form1nothing changed and nothing selected in form1 combobox value**so that how to solve [problem](https://yourviews.mindstick.com/view/81399/tackling-the-problem-of-unemployment-during-corona-pandemic) ?**\


---

Original Source: https://www.mindstick.com/forum/34274/how-to-pass-combobox-value-from-windows-form-edirrow-to-windows-form-form1-where-click-button

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
