We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Transparent Textbox

Thread ID:

Created:

Updated:

Platform:

Replies:

180 Apr 16,2002 05:02 PM UTC Aug 15,2002 09:07 PM UTC Windows Forms 2
loading
Tags: FAQ
Phillip Carver
Asked On April 16, 2002 05:02 PM UTC

I'm trying to reproduce functionality that I had in VB6. I used to use the Textbox control that came with Forms 2.0 control (fm20.dll) it had an attribute that allowed you to set the background to transparent (fmBackStyleTransparent) I need to this same functionality in vb.net. In particular I need to be able to display foreground text with a gradient background or a bitmap. Any ideas? - Phillip

Prakash S [Syncfusion]
Replied On April 19, 2002 12:14 PM UTC

Philip, I doubt whether this effect can be achieved using the .NET TextBox as this is just a wrapper around the Win32 EDIT control. The Win32 EDIT control paints it's background everytime the text changes and working around this behavior, while still retaining the control's full functionality, is a non-trivial affair and will involve extensive customization. Unfortunately, I am not aware of any code samples that show this. I suggest that you check out the various Win32 newsgroups/forums or go in for some 3rd party controls that have the functionality pre-built. Prakash Syncfusion, Inc.

Lacy McClarty
Replied On August 15, 2002 09:07 PM UTC

> I'm trying to reproduce functionality that I had in VB6. I used to use the Textbox control that came with Forms 2.0 control (fm20.dll) it had an attribute that allowed you to set the background to transparent (fmBackStyleTransparent) I need to this same functionality in vb.net. In particular I need to be able to display foreground text with a gradient background or a bitmap. > > Any ideas? > - Phillip If you're willing to move your textbox to a seperate form, you can take advantage of setting an entire form to transparent. Your textbox control would follow suit and still allow the text font to display. This workaround has side effects. For example, you'd need to use the Form's TopMost property to ensure the textbox would still be visible. Lacy >

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;