[求助]如何往自定义菜单LIST控件中增加数据 Post By:2017/11/14 22:32:00 [只看该作者]
如何往自定义菜单LIST控件中增加数据?
如下是自定义的菜单LISTBOX
Dim C1Ribbon1 As C1Ribbon.C1Ribbon = Ctype(BaseMainForm.controls("C1Ribbon1"),C1Ribbon.C1Ribbon )
Dim a As New Windows.Forms.Listbox a.Items.Add("地对地导弹") a.Items.Add("xxxxxx") 'a.Text = "123456789" a.Font = new font("宋体", 15) a.backColor = color.red Dim b As New C1Ribbon.RibbonControlHost(a) b.name = "自定义项1" b.width = 300 C1Ribbon1.tabs("111").Groups("222").Items.Add(b)