I am designing my first InfoPath task pane. In an effort to make the panes
look more professional, i would like the background color of my taskpane to
match the background color of the application and toolbars and so forth. I
could hardcode this, but if a user has a slightly different set of
preferences then it will look messy. Is there any way to use either C# code
or script to get the background color of the application(toolbars, and
taskpane border), so that I can set my taskpane to the same color? Any help
is greatly apprciated!
>I am designing my first InfoPath task pane. In an effort to make the panes
>look more professional, i would like the background color of my taskpane to
[quoted text clipped - 4 lines]
>taskpane border), so that I can set my taskpane to the same color? Any help
>is greatly apprciated!
Refer to the "User-Defined System Color" section
http://msdn.microsoft.com/workshop/author/dhtml/reference/colors/colors.asp
Regards,
Steve
--
Please post questions to the newsgroup; everyone benefits.
This posting is provided "AS IS" with no warranties, and confers no rights.
Sample code subject to http://www.microsoft.com/info/cpyright.htm
Greg Collins [MVP] - 24 Sep 2004 02:17 GMT
Try as you might, these colors won't get you what you are looking for. The differnece comes from the fact that InfoPath is using "Office" colors, and the link below is "Windows System" colors. They are different. I've tried this quite extensively. You can get kind of close, but you'll never match until you can somehow get access to the Office color set.

Signature
Greg Collins [InfoPath MVP]
Please visit: http://www.InfoPathDev.com
On Thu, 23 Sep 2004 13:23:05 -0700, "GGian"
<GGian@discussions.microsoft.com> wrote:
>I am designing my first InfoPath task pane. In an effort to make the panes
>look more professional, i would like the background color of my taskpane to
[quoted text clipped - 4 lines]
>taskpane border), so that I can set my taskpane to the same color? Any help
>is greatly apprciated!
Refer to the "User-Defined System Color" section
http://msdn.microsoft.com/workshop/author/dhtml/reference/colors/colors.asp
Regards,
Steve
--
Please post questions to the newsgroup; everyone benefits.
This posting is provided "AS IS" with no warranties, and confers no rights.
Sample code subject to http://www.microsoft.com/info/cpyright.htm
GGian - 24 Sep 2004 14:23 GMT
Steve,
thanks so much. this helped very much. I just set the backgorund color of
my taskpane to "scrollbar" which seems to match the taskpane border
perfectly. thanks for the help.
Greg
> >I am designing my first InfoPath task pane. In an effort to make the panes
> >look more professional, i would like the background color of my taskpane to
[quoted text clipped - 14 lines]
> This posting is provided "AS IS" with no warranties, and confers no rights.
> Sample code subject to http://www.microsoft.com/info/cpyright.htm