Advertisement
ElCris009

Tutorial | Como crear un Paint

Jul 11th, 2019
502
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.42 KB | None | 0 0
  1. Referencia:https://www.youtube.com/watch?v=oxy5WxsFEd4
  2.  
  3. Declaraciones globales:
  4.     Dim down = False
  5.     Dim ColorPEN = Brushes.Black
  6.  
  7. PictureBox1, Evento MouseMove:
  8.     If down = True Then
  9.         PictureBox1.CreateGraphics.FillEllipse(ColorPEN, e.X, e.Y, 15, 15)
  10.     End If
  11.  
  12. PictureBox1, Evento MouseUp:
  13.     down = False
  14.  
  15. Botón abrir imagen:
  16.     OpenFileDialog1.ShowDialog()
  17.     PictureBox1.ImageLocation = (OpenFileDialog1.FileName)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement