Print Page | Close Window

[SOLVED]StatusBarPane BackgroundColor

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=15529
Printed Date: 06 October 2024 at 6:48pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [SOLVED]StatusBarPane BackgroundColor
Posted By: iamgtd
Subject: [SOLVED]StatusBarPane BackgroundColor
Date Posted: 02 November 2009 at 9:35am

For the statusbarpane exists the following method to set the backgroundcolor:

StatusBarPane pane = StatusBar.AddPane(0);
pane.BackgroundColor = ????;

The BackgroundColor method expects a uint-value. How can I convert a color with RGB-values to a unit-value?


 



-------------
---------

OS: Win 10 64 bit

Codejock Version 22.1 ActiveX

MS Visual Studio 2022 - C#

---------



Replies:
Posted By: Oleg
Date Posted: 03 November 2009 at 7:26am
Hi,
 

Pane.BackgroundColor = (uint)ColorTranslator.ToOle(Color.Red);



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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