Hello!
I would like to remove the description text in front of the AddButton (UltraGrid.DisplayLayout.AddNewBox.Prompt="") and simply use the Caption on the AddButton (UltraGrid.DisplayLayout.Bands(0).AddButtonCaption="MyCaption").
When I do like this, the Button ends up all the way to the left in the addnewarea, withput any padding whatsoever... I looks like rubbish to be honest ;-)
Before, I used a small peace of text and then I made the AddNewBox.Appearance.Forecolor into white which was the background color of this area. it then came invisible and things looked good. Not I am using AppStyling and Office2007black and that doesn't work for me any longer.
Anyone that has an idea of what to do...?
Thanks for your help!
/Henrik
I have tried:
ug.DisplayLayout.AddNewBox.Appearance.ForeColor = Drawing.Color.Transparent
without any help...
could you please provide me with some more information about your possible solution. i am not sure what to do really ;-)
/H
Okay, then instead of using white for the forecolor of the text, what if you used Color.Transparent?
If that doesn't work, then you could use a DrawFilter to handle the BeforeDrawForeground of the element that draws the caption and return true to cancel the drawing of the text.
Yes, I have tried that without success... Blanks were my first though... ;-)
Have you tried setting the Prompt to some space characters, rather than an empty string?