Transparent TextBox or background image

K

Kulber

First off, excuse my English, is an online translation.

Hello. I've been looking for a long time over the Internet how to make a
"textbox" is transparent or having a background image, but I can not find,
just a website that allows a "textbox" is transaprente, but is in C (and not
I have no idea C). The Web is this:

http://www.codeproject.com/KB/edit/TransparentTextBox.aspx

I think that is an interesting feature that microsoft has not ever happened
(or so it seems). Anyway, if someone knows how to convert the C code to
VB.NET since it would be perfect.

Thank you all.
 
K

kimiraikkonen

First off, excuse my English, is an online translation.

Hello. I've been looking for a long time over the Internet how to make a
"textbox" is transparent or having a background image, but I can not find,
just a website that allows a "textbox" is transaprente, but is in C (and not
I have no idea C). The Web is this:

http://www.codeproject.com/KB/edit/TransparentTextBox.aspx

I think that is an interesting feature that microsoft has not ever happened
(or so it seems). Anyway, if someone knows how to convert the C code to
VB.NET since it would be perfect.

Thank you all.

You can check this out:
http://www.codeproject.com/KB/edit/alphablendtextbox.aspx

Hope this helps,

Onur Güzel
 
M

Martin H.

Hello Kulber,

if it's OK to use a RichTextBox rather than a plain TextBox,
then you might want to have a look here:
http://groups.google.com/group/micr...read/thread/6296a2147671e34d/0239d84d5267f255

Please note that for transparancy you cannot expect that you really
"look through" an object but only see the background (image) of it's
container. If you put it over a PictureBox for example, you will find
that the PictureBox is not necessarily updated as you need it. I
encountered this problem and put it (and the background image) onto a panel.

Best regards,

Martin
 
K

Kulber

Also asked by that code for VB.NET that no wise convert from C, and gave me
the answer.

Thanks anyway.

This is the answer (is in Spanish):
.. . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . .

TEXT IN SPANISH:

Basandome en el link que pones encontre una solucion. Lo probe en VB 2008 y
me parece "bien"

http://www.codeproject.com/KB/edit/alphablendtextbox.aspx

Baja el codigo fuente, es para C# y VB

El codigo fuente es sencillo aunque no se si te sirva ya que ocupas agregar
una referencia a una DLL (que viene incluida en el codigo) y este codigo
para cada TextBox que quieras

Dim TextBox1 As New ZBobb.AlphaBlendTextBox
TextBox1.BackAlpha = 70
TextBox1.ForeColor = System.Drawing.Color.Black
TextBox1.Location = New System.Drawing.Point(106, 48)
TextBox1.Name = "TextBox1"
TextBox1.Size = New System.Drawing.Size(150, 20)
TextBox1.Text = "TextBox1"
Controls.Add(TextBox1)

No se puede indicar (al menos eso vi en el ejemplo) que funcione sobre un
TextBox ya creado, sino creando uno desde 0 con puro codigo

Espero te sirva
 

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