buttonun image resmini değiştireceğiz.
(Şekil2)
Şekil 2
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Button1.BackColor = Color.White
Button1.ImageAlign = ContentAlignment.MiddleLeft
Button1.Image = Image.FromFile("image\renksiz.jpg")
End Sub
Private Sub Button1_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Button1.MouseMove
Button1.Image = Image.FromFile("image\renkli.jpg")
End Sub
Private Sub Form1_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseMove
Button1.Image = Image.FromFile("image\renksiz.jpg")
End Sub
End Class
Bir sonraki makalede görüşmek üzere. Bahadır ŞAHİN
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Button1.BackColor = Color.White
Button1.ImageAlign = ContentAlignment.MiddleLeft
Button1.Image = Image.FromFile("image\renksiz.jpg")
End Sub
Private Sub Button1_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Button1.MouseMove
Button1.Image = Image.FromFile("image\renkli.jpg")
End Sub
Private Sub Form1_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseMove
Button1.Image = Image.FromFile("image\renksiz.jpg")
End Sub
End Class
Bir sonraki makalede görüşmek üzere. Bahadır ŞAHİN
0 comments:
Yorum Gönder