Print Page | Close Window

Item.Backcolor in VB.NET with windows.forms.panel

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Task Panel
Forum Description: Topics Related to Codejock Task Panel
URL: http://forum.codejock.com/forum_posts.asp?TID=10566
Printed Date: 24 November 2024 at 5:26pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Item.Backcolor in VB.NET with windows.forms.panel
Posted By: gaudetm
Subject: Item.Backcolor in VB.NET with windows.forms.panel
Date Posted: 08 May 2008 at 1:17pm
Hi, I'm moving all my applications to VB.NET from VB6 (VB.COM) but with a full redesign from the ground to top but one thing that what working fine in VB6 was that trick for the background color of controls in taskpanel
 
in form_load()
set myitem = mygroup.items.add(1,"",3)
myitem.control = picControls
picControls.backcolor = myitem.backcolor
 
but in vb.net i replace that by
 
myitem = mygroup.items.add(1,"",3)
myitem.control = panelControls
panelControls.backcolor = Color.FromArgb(myitem.backcolor)
 
no error on running but the backcolor isn't changed i event put the code in the paint event of the panel but nothing changed
 



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net