Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - [SOLVED]StatusBarPane BackgroundColor
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[SOLVED]StatusBarPane BackgroundColor

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

Joined: 25 February 2009
Status: Offline
Points: 131
Post Options Post Options   Thanks (0) Thanks(0)   Quote iamgtd Quote  Post ReplyReply Direct Link To This Post Topic: [SOLVED]StatusBarPane BackgroundColor
    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#

---------
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 03 November 2009 at 7:26am
Hi,
 

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

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.109 seconds.