想在工作组的工具栏中插入一个图片,AfterOpenProject中代码如下。重新起动项目后全出现错误提示如图
Dim C1Ribbon1 As C1Ribbon.C1Ribbon = Ctype(BaseMainForm.controls("C1Ribbon1"),C1Ribbon.C1Ribbon )
Dim a As New system.Windows.Forms.picturebox
a.BackgroundImage = getimage(ProjectPath & "Images\4.png" )
a.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch
Dim b As New C1Ribbon.RibbonControlHost(a)
b.name = "自定义项1"
b.width = basemainform.width-30
b.height = 60
RibbonTabs("功能区1").Groups("功能组1").Items("工具栏1").Items.Insert(0,b)
此主题相关图片如下:提示.png
请指教一下如何解决
[此贴子已经被作者于2021/10/16 23:04:12编辑过]