在Visual Studio中声明组合框! [英] Declare Combo box in Visual Studio!
本文介绍了在Visual Studio中声明组合框!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
请帮帮我
如何声明Combobox1 ...因为它显示错误:没有声明Combobox1 ..
如何申报?
这是代码:
Help me pls
How can I declare Combobox1...because it shows an error that: "Combobox1 is not declared.."
how can I declare it?
that''s the code:
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
ComboBox1.Items.Add("4")
ComboBox1.Items.Add("5")
ComboBox1.Items.Add("6")
ComboBox1.Items.Add("7")
ComboBox1.Items.Add("8")
ComboBox1.Items.Add("9")
ComboBox1.Items.Add("10")
ComoBox1.SelectedItem = 0
End Sub
推荐答案
将ComboBox1变暗为新的ComboBox( )。
此外,你线程中的最后一行代码拼写错误。
Dim ComboBox1 as new ComboBox().
Also, your last line of code in your thread is spelled wrong.
在表单中添加一个组合框并将其命名为ComboBox1
Add a combo box to your form and name it ComboBox1
这篇关于在Visual Studio中声明组合框!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文