- l)3wilKßZ ►☻◄ ƒøяυλ⁄(-мємвєя
- samir shrilimkar
POSTS : 17
REPUTATION : 3
KBZ TEAM POINTS : 35
JOIN DATE : 2015-09-17
Tutorial: How To View A Url Image (Captcha) In A Picture Box In VB.Net(Visual Basic.Net)
Sun Dec 27, 2015 7:28 am
Imports System.Runtime.InteropServices
Public Class Form1
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Timer1.Start()
End Sub
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
PictureBox1.ImageLocation = TextBox1.Text
End Sub
Private Sub TextBox1_KeyPress(sender As Object, e As KeyPressEventArgs) Handles TextBox1.KeyPress
TextBox1.Clear()
End If
End Sub
Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
With TextBox1
'// check if Clipboad has Text and if Not TextBox has the Clipboard Text already.
If Clipboard.ContainsText AndAlso Not .Text = Clipboard.GetText Then
.Clear() : .Paste() '// clear for new data and paste to TextBox.
End If
End With
End Sub
End Class
Public Class Form1
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Timer1.Start()
End Sub
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
PictureBox1.ImageLocation = TextBox1.Text
End Sub
Private Sub TextBox1_KeyPress(sender As Object, e As KeyPressEventArgs) Handles TextBox1.KeyPress
TextBox1.Clear()
End If
End Sub
Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
With TextBox1
'// check if Clipboad has Text and if Not TextBox has the Clipboard Text already.
If Clipboard.ContainsText AndAlso Not .Text = Clipboard.GetText Then
.Clear() : .Paste() '// clear for new data and paste to TextBox.
End If
End With
End Sub
End Class
Permissions in this forum:
You cannot reply to topics in this forum