在表单中,我尝试创建以下代码。partial class Form1 : Form private List<ComboBox> comboBoxes = new List<ComboBox>() combobox1,combobox2,combobox3} 我得到的错误如下 A field initializer cannot reference the non-static field, method, or property 但我可以
范围G4:G25有微软的回报数据,范围H4:H25有苹果公司的数据,范围I4:I25有的回报数据,的范围J4: J4:J25的数据有埃克森的回报。,范围H4:H25为Range2,I4:I25为Range3,J4:J25为Range4Dim data1 As Integer
If ComboBox1= "microsoft" Then data1 = Range("Range1").S