WinForms passing data between Forms [duplicate]
This question already has an answer here: Communicate between two windows forms in C# 12 answers I have a table named questions with a field name qcategory . In WFA I have a ToolStripMenu where I have a category named Simulation and a sub-category named B . So, I want to create a mysql SELECT where to select only rows which values are equal with sub-category value. (Columns qcategory from table has value B ). This is the string: static string dataA = "SELECT DISTINCT * FROM questions order by rand() limit 1"; The only problem is that I have 2 forms. One with menu and one where I want to make