以文本方式查看主题 - Foxtable(狐表) (http://foxtable.net/bbs/index.asp) -- 专家坐堂 (http://foxtable.net/bbs/list.asp?boardid=2) ---- 插入图片 (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=172519) |
-- 作者:HANZHIGANG -- 发布时间:2021/10/16 23:04:00 -- 插入图片 想在工作组的工具栏中插入一个图片,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 请指教一下如何解决 [此贴子已经被作者于2021/10/16 23:04:12编辑过]
|
-- 作者:有点蓝 -- 发布时间:2021/10/17 20:32:00 -- 只能插入功能组里 RibbonTabs("功能区1").Groups("功能组1").Items.Insert(0,b)
|