Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / September 2004

Tip: Looking for answers? Try searching our database.

Set TaskPane Background

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
GGian - 23 Sep 2004 21:23 GMT
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!
Steve van Dongen [MSFT] - 24 Sep 2004 00:49 GMT
>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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.