请教老师,下列代码在设计窗口打开阅览时,TabControl设置背景颜色正常,但是项目发布后,TabControl的背景颜色设置无效,不显示图片的颜色
Dim tab As WinForm.TabControl = e.Form.Controls("TabControl1")tab.TabPages(0).BackgroundImage = getimage("Images\主色块.jpg")tab.TabPages(0).BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch