Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
65
background transparency ultratextEditor
posted

I have a form with a picturebox. I would like to see it as background of my ultratexteditor.

 I've tried to set the property alphalevel's ultratexteditor to 1. preview design show me the color of my form...as background and isn't correct.

'cause half textbox lies on a image and other half texteditor on a free space in form..this is not a real transparency. it's set only the color as background form..

I'would like to see only the text and all the background with the image below!

I've tried also to set backcoloralpha at the possibles values...without result. 

any suggestion ?

Thanks in advance...!  

Parents
  • 469350
    Verified Answer
    Offline posted

        Vince is correct that you can't get actual transparency here, you can actually acheive a very similar effect. But it won't work with a PictureBox - or at least not a PictureBox by itself, unless that PictureBox is completely filling the same container that the UltraTextEditor is in.

        Anyway, the way you could do it is by using the ImageBackgroundOrigin on the UltraTextEditor's Appearance. You can't truly made the UltraTextEditor transparent to do what you want, because that's just not how transparency works in DotNet. But what you can do is apply the same image to the UltraTextEditor that you have applied to it's container control. For example, suppose you use a panel instead of a PictureBox to display your image and that the UltraTextEditor is contained inside the panel. You could do something like this:

                this.ultraTextEditor1.Appearance.ImageBackground = this.panel1.BackgroundImage;
                this.ultraTextEditor1.Appearance.ImageBackgroundStyle = Infragistics.Win.ImageBackgroundStyle.Tiled;
                this.ultraTextEditor1.Appearance.ImageBackgroundOrigin = Infragistics.Win.ImageBackgroundOrigin.Container;

        It's not truly transparent, but it will show the proper segment of the parent image as it's background, so it gives the illusion of transparency.  

Reply Children