Ver Mensaje Individual
  #6 (permalink)  
Antiguo 05/04/2011, 08:05
Avatar de Aquaventus
Aquaventus
 
Fecha de Ingreso: junio-2010
Ubicación: Lima-Peru , En el alba de la naturaleza
Mensajes: 2.105
Antigüedad: 13 años, 10 meses
Puntos: 267
Respuesta: Descripción emergente con el contenido de un TextBox

Hola Denis127_2 espero te sirva este codigo que solo lo probé para 1 textbox. Saludos!

Código vb.net:
Ver original
  1. Private Sub txtTexto_MouseHover(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtTexto.MouseHover
  2.         Dim texto As New Label
  3.         texto.Name = "help"
  4.         texto.Width = txtTexto.Width
  5.         txtTexto.Height = txtTexto.Height
  6.         texto.Text = txtTexto.Text
  7.         texto.ForeColor = Color.Black
  8.         texto.BackColor = Color.SeaShell
  9.         texto.Location = New System.Drawing.Point(txtTexto.Location.X, txtTexto.Location.Y - 26)
  10.         Me.Controls.Add(texto)
  11.  
  12.     End Sub
  13.  
  14.     Private Sub txtTexto_MouseLeave(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtTexto.MouseLeave
  15.         Dim ctl As Control
  16.  
  17.         For Each ctl In Me.Controls
  18.             If TypeOf ctl Is Label Then
  19.                 If ctl.Name.Equals("help") Then
  20.                     Controls.Remove(ctl)
  21.                 End If
  22.             End If
  23.         Next
  24.     End Sub
__________________
Internet es tener todo el conocimiento global a tu disposición.
Desarrollo de Software - Ejemplos .Net