toolstripmenu

WinForms passing data between Forms [duplicate]

你说的曾经没有我的故事 提交于 2019-11-28 02:28:56
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

WinForms passing data between Forms [duplicate]

拟墨画扇 提交于 2019-11-27 19:12:50
问题 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

Change the border color of Winforms menu dropdown list

不问归期 提交于 2019-11-27 05:58:28
问题 Is it possible to change the border color of a toolstrip menu dropdown list. In my sample below I would like the dropdown menu to have 1 color (blue) without the white border currently being displated, but keeping the main menu ('My Menu') item white. Any ideas? 回答1: Is it possible to change the border color of a toolstrip menu dropdown list. Yes. A class which inherits from ProfessionalColorTable works as expected: class MenuColorTable : ProfessionalColorTable { public MenuColorTable() { //