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...!
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.
One note: I found the above did not work in my case unless I made sure to select focus to a control other than the ultra text editor. The panel control works fine in this regard.
Yes, when the UltraTextEditor goes into edit mode, it displays a TextBox control over itself to allow the user to edit. The DotNet TextBox doesn't support the same kind of image offset, so this won't work in edit mode.