Set TaskPane Background

G

GGian

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!
 
S

Steve van Dongen [MSFT]

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!

Refer to the "User-Defined System Color" section
http://msdn.microsoft.com/workshop/author/dhtml/reference/colors/colors.asp

Regards,
Steve
 
G

GGian

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top