06-24-2011, 06:20 PM
How to show ip(Written by Slurms Makenzi)
How to show time and date(Written by Slurms Makenzi)
- Add A Label
Code:
Imports System.Net
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim wc As New webclient
Label1.text = wc.DownloadString("http://www.team-neff.info/")
End Sub
End Class
How to show time and date(Written by Slurms Makenzi)
- Add a timer
- Add a Label
Code:
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Timer1.Start()
End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Label1.Text = Date.Now
End Sub
End Class