Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

[Tut] List IP and Date/Time [Basic] [/Tut]

How to show ip(Written by Slurms Makenzi)
  1. 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://loungeforum.net/hf/")
    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


How to show time[intermediate](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 = DateAndTime.TimeOfDay
    End Sub
End Class


How to show date[intermediate](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 = DateAndTime.DateString    End Sub
End Class
You would be much better off using the WhatIsMyIP automation, since it is faster and more reliable.

μεγαλομανία
Im just using my website for this tutorial and, what automation?
(Jul 10, 2011 01:10 PM)Sapientia Wrote:  Im just using my website for this tutorial and, what automation?

He meant, it is much more stable if you're using this method to retrieve your IP address.

Btw, you don't really need to call this thread a 'tutorial', since all you need is a source code, I am sure people would figure out how to implement it.

✌
Ok, well like i said i was just trying to help.

:P
Thanks for this I found it helpful even if others have not!!!

Keep up the good work =)
(Jul 18, 2011 11:40 AM)DoctorJekyll Wrote:  Thanks for this I found it helpful even if others have not!!!

Keep up the good work =)

Your welcome, happy to help!
Pretty simplistic, however glad to see another tutorial, better then a stupid over asked help thread.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C#] by BBGMazeJun 2, 2022 06:17 PM 2 163 Jun 2, 2022 06:17 PM
Last Post: Prisonhack9279
[Java] by Nemo2478Jun 4, 2020 01:23 PM 3 195 Jun 4, 2020 01:23 PM
Last Post: Nemo2478
[.NET] by Formula 1Feb 28, 2019 02:31 PM 2 189 Feb 28, 2019 02:31 PM
Last Post: Formula 1