Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
List IP And The Time Of Day [tut]
#1
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://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

[Image: Untitled-1-4.jpg]
Reply
#2
Maybe you should show some pictures to help users have a better understanding.
Reply
#3
Wow great thanks and check the pm
Reply
#4
Label1.Text = Date.Now
End Sub
End Class
Reply
#5
Code:
Label1.Text = Date.Now


There's more optionality with using DateAndTime instead of Date

Some other examples are:
Code:
Label1.Text = DateAndTime.DateString
Code:
Label1.Text = DateAndTime.Today
The difference between these two is just a "-" and the "/" format for the month/day/year format.

Code:
Label1.Text = DateAndTime.TimeOfDay
This will get the specific time of day without the date.

You can also extract exact values or create your own format for the date and time using DateAndTime
Reply
#6
Did you responded to my pm?
Reply
#7
(07-03-2011, 03:17 AM)H-Q Wrote: Did you responded to my pm?

Me? or someone else? I never got a PM
Reply
#8
(07-03-2011, 04:09 AM)Ace Wrote: Me? or someone else? I never got a PM
haha not you Thumbsup
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [TUT] How to make a simple WebBrowser in VB 2010! [TUT] - [ Pictures] Statics 95 61,805 10-07-2012, 06:56 AM
Last Post: a99
  [TUT]Auto-Update System[TUT] HB Virus 3 2,425 01-07-2012, 02:21 PM
Last Post: Mastermrz
  [TUT]Enable and Disable TaskManger in vb.net [TUT] HB Virus 4 3,164 12-19-2011, 10:10 AM
Last Post: euverve
  [Vb.net] List and Kill Processes[Tut] Slurms Makenzi 11 3,440 07-21-2011, 11:21 AM
Last Post: AceInfinity
  [TuT] VB6 Message Box Spammer [TuT] HakkuR* 30 7,501 06-06-2011, 04:43 PM
Last Post: Black Demon

Forum Jump:


Users browsing this thread: 5 Guest(s)