document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. \' Gambas class file
  2.  
  3. Public Sub _new()
  4.  
  5. End
  6.  
  7. Public Sub Form_Open()
  8.  
  9.   Dim a As Integer
  10.  
  11.   PictureBox1.border = Border.Raised
  12.   PictureBox1.Stretch = True
  13.   PictureBox1.Picture = Picture[Application.Path &/ "dragon.png"]
  14.  
  15. End
  16.  
  17. Public Sub ButtonPegar_Click()
  18.  
  19.   Dim a As Integer
  20.   \'AƱado el contendido del portapapeles al textArea
  21.  
  22.   LabelMensaje.text = "El contenido del portapapeles tiene los siguientes formatos: "
  23.  
  24.   For a = 0 To Clipboard.Formats.Count - 1
  25.     LabelMensaje.text &= " " & Clipboard.Formats[a] & "|"
  26.   Next
  27.  
  28.   TextAreaContenido.text &= Clipboard.Paste("text/plain")
  29.  
  30.   If Clipboard.format = "image/png" Then
  31.     \'cargo imagen en el picturebox1
  32.     PictureBox1.Picture = Clipboard.Paste().picture
  33.   Endif
  34.  
  35. End
  36.  
  37. Public Sub ButtonCopiar_Click()
  38.   \'copio el texto que haya en el textArea al porpatapeles
  39.  
  40.   Clipboard.Copy(TextAreaContenido.text)
  41.  
  42. End
  43.  
  44. Public Sub ButtonCopiarImagen_Click()
  45.   \'copio imagen que esta en el picurebox1
  46.   Clipboard.Copy(PictureBox1.Picture.image)
  47.  
  48. End
');