By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,870 Members | 1,212 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,870 IT Pros & Developers. It's quick & easy.

Transparent TextBox or background image

P: n/a
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/T...ntTextBox.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.
Jul 11 '08 #1
Share this Question
Share on Google+
4 Replies


P: n/a
On Jul 11, 9:59 pm, Kulber <Kul...@discussions.microsoft.comwrote:
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/T...ntTextBox.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/a...ndtextbox.aspx

Hope this helps,

Onur Güzel
Jul 11 '08 #2

P: n/a
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/micro...39d84d5267f255

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

On 12.07.2008 02:59, wrote 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/T...ntTextBox.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.
Jul 11 '08 #3

P: n/a
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/a...ndtextbox.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
Jul 13 '08 #4

P: n/a
I do not really understand that code
Jul 13 '08 #5

This discussion thread is closed

Replies have been disabled for this discussion.