Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Task Panel
  New Posts New Posts RSS Feed - Item.Backcolor in VB.NET with windows.forms.panel
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

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

 Post Reply Post Reply
Author
Message
gaudetm View Drop Down
Senior Member
Senior Member
Avatar

Joined: 23 September 2006
Location: Canada
Status: Offline
Points: 134
Post Options Post Options   Thanks (0) Thanks(0)   Quote gaudetm Quote  Post ReplyReply Direct Link To This Post Topic: Item.Backcolor in VB.NET with windows.forms.panel
    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
 
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.