Questo sito utilizza cookies solo per scopi di autenticazione sul sito e nient'altro. Nessuna informazione personale viene tracciata. Leggi l'informativa sui cookies.
Username: Password: oppure
Internet Point - Form1.vb

Form1.vb

Caricato da:
Scarica il programma completo

  1. Public Class Form1
  2.  
  3.     Private Sub Back_button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Back_button.Click
  4.         Navigator.GoBack()
  5.     End Sub
  6.  
  7.     Private Sub Forward_button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Forward_button.Click
  8.         Navigator.GoForward()
  9.     End Sub
  10.  
  11.     Private Sub Refresh_button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Refresh_button.Click
  12.         Navigator.Refresh()
  13.     End Sub
  14.  
  15.     Private Sub Stop_button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Stop_button.Click
  16.         Navigator.Stop()
  17.     End Sub
  18.  
  19.     Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  20.         Navigator.Navigate("http://www.google.it")
  21.         VAI_button.Visible = False
  22.         'Timer1.Start()
  23.         Red_Lime.Start()
  24.     End Sub
  25.  
  26.     Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
  27.         CloseForm.Show()
  28.     End Sub
  29.  
  30.     Private Sub WindowsLiveMessengerToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles WindowsLiveMessengerToolStripMenuItem.Click
  31.         MsgBox("Attenzione: è vivamente sconsigliato salvare il proprio contatto/password di Messenger", MsgBoxStyle.Information, "Internet Point info")
  32.         MsgBox("Per visualizzare meglio la finestra di Messenger spostare il più in basso possibile la finestra di Internet Point", MsgBoxStyle.Information, "Internet Point info")
  33.         Process.Start("C:/Program Files/Windows Live/Messenger/msnmsgr.exe")
  34.     End Sub
  35.  
  36.     Private Sub YahooMessengerToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles YahooMessengerToolStripMenuItem.Click
  37.         MsgBox("Attenzione: è vivamente sconsigliato salvare il proprio contatto/password di Messenger", MsgBoxStyle.Information, "Internet Point info")
  38.         MsgBox("Per visualizzare meglio la finestra di Messenger spostare il più in basso possibile la finestra di Internet Point", MsgBoxStyle.Information, "Internet Point info")
  39.         Process.Start("C:/Program Files/Yahoo!/Messenger/YahooMessenger.exe")
  40.     End Sub
  41.  
  42.     Private Sub GoogleTalkToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles GoogleTalkToolStripMenuItem.Click
  43.         MsgBox("Attenzione: è vivamente sconsigliato salvare il proprio contatto/password di Messenger", MsgBoxStyle.Information, "Internet Point info")
  44.         MsgBox("Per visualizzare meglio la finestra di Messenger spostare il più in basso possibile la finestra di Internet Point", MsgBoxStyle.Information, "Internet Point info")
  45.         Process.Start("C:/Program Files/Google/Google Talk/googletalk.exe")
  46.     End Sub
  47.  
  48.     Private Sub AIMToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AIMToolStripMenuItem.Click
  49.         MsgBox("Attenzione: è vivamente sconsigliato salvare il proprio contatto/password di Messenger", MsgBoxStyle.Information, "Internet Point info")
  50.         MsgBox("Per visualizzare meglio la finestra di Messenger spostare il più in basso possibile la finestra di Internet Point", MsgBoxStyle.Information, "Internet Point info")
  51.         Process.Start("C:/Program Files/AIM6/aim6.exe")
  52.     End Sub
  53.  
  54.     Private Sub GoogleToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles GoogleToolStripMenuItem.Click
  55.         Navigator.Navigate("http://www.google.it")
  56.     End Sub
  57.  
  58.     Private Sub YahooToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles YahooToolStripMenuItem.Click
  59.         Navigator.Navigate("http://www.yahoo.it")
  60.     End Sub
  61.  
  62.     Private Sub MSNToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MSNToolStripMenuItem.Click
  63.         Navigator.Navigate("http://www.msn.it")
  64.     End Sub
  65.  
  66.     Private Sub BingToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BingToolStripMenuItem.Click
  67.         Navigator.Navigate("http://www.bing.com")
  68.     End Sub
  69.  
  70.     Private Sub VirgilioToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles VirgilioToolStripMenuItem.Click
  71.         Navigator.Navigate("http://www.virgilio.it")
  72.     End Sub
  73.  
  74.     Private Sub LiberoToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LiberoToolStripMenuItem.Click
  75.         Navigator.Navigate("http://www.libero.it")
  76.     End Sub
  77.  
  78.     Private Sub YouTubeToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles YouTubeToolStripMenuItem.Click
  79.         Navigator.Navigate("http://it.youtube.com")
  80.     End Sub
  81.  
  82.     Private Sub FacebookToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles FacebookToolStripMenuItem.Click
  83.         Navigator.Navigate("http://www.facebook.com")
  84.     End Sub
  85.  
  86.     Private Sub MicrosoftToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MicrosoftToolStripMenuItem.Click
  87.         Navigator.Navigate("http://www.microsoft.it")
  88.     End Sub
  89.  
  90.     Private Sub AppleToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AppleToolStripMenuItem.Click
  91.         Navigator.Navigate("http://www.apple.com")
  92.     End Sub
  93.  
  94.     Private Sub MegavideoToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MegavideoToolStripMenuItem.Click
  95.         Navigator.Navigate("http://www.megavideo.com")
  96.     End Sub
  97.  
  98.     Private Sub Navigator_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles Navigator.DocumentCompleted
  99.         URL_TextBox.Text = Navigator.Document.Url.AbsoluteUri
  100.  
  101.         If URL_TextBox.Text = "http://www.google.it/" Then
  102.             Site_label.Text = "Google"
  103.         End If
  104.         If URL_TextBox.Text = "http://www.yahoo.it/" Then
  105.             Site_label.Text = "Yahoo!"
  106.         End If
  107.         If URL_TextBox.Text = "about:blank" Then
  108.             Site_label.Text = "Pagina vuota"
  109.         End If
  110.         If URL_TextBox.Text = "http://www.forumfree.net/" Then
  111.             Site_label.Text = "Forumfree"
  112.         End If
  113.         If URL_TextBox.Text = "http://www.facebook.com/" Then
  114.             Site_label.Text = "Facebook"
  115.         End If
  116.         If URL_TextBox.Text = "http://it.facebook.com/" Then
  117.             Site_label.Text = "Facebook"
  118.         End If
  119.         If URL_TextBox.Text = "http://www.netlog.com/" Then
  120.             Site_label.Text = "Netlog"
  121.         End If
  122.         If URL_TextBox.Text = "http://it.netlog.com/" Then
  123.             Site_label.Text = "Netlog"
  124.         End If
  125.         If URL_TextBox.Text = "http://www.youtube.com/" Then
  126.             Site_label.Text = "YouTube"
  127.         End If
  128.         If URL_TextBox.Text = "http://it.youtube.com/" Then
  129.             Site_label.Text = "YouTube"
  130.         End If
  131.         If URL_TextBox.Text = "http://www.msn.it/" Then
  132.             Site_label.Text = "MSN"
  133.         End If
  134.         If URL_TextBox.Text = "http://it.msn.com/" Then
  135.             Site_label.Text = "MSN"
  136.         End If
  137.         If URL_TextBox.Text = "http://www.virgilio.it/" Then
  138.             Site_label.Text = "Virgilio"
  139.         End If
  140.         If URL_TextBox.Text = "http://www.libero.it/" Then
  141.             Site_label.Text = "Libero"
  142.         End If
  143.         If URL_TextBox.Text = "http://www.microsoft.com/" Then
  144.             Site_label.Text = "Microsoft"
  145.         End If
  146.         If URL_TextBox.Text = "http://www.microsoft.it/" Then
  147.             Site_label.Text = "Microsoft"
  148.         End If
  149.         If URL_TextBox.Text = "http://www.apple.com/" Then
  150.             Site_label.Text = "Apple"
  151.         End If
  152.         If URL_TextBox.Text = "http://www.pierotofy.it/" Then
  153.             Site_label.Text = "Pierotofy"
  154.         End If
  155.         If URL_TextBox.Text = "http://www.bing.com/" Then
  156.             Site_label.Text = "Bing"
  157.         End If
  158.         If URL_TextBox.Text = "http://www.wikipedia.org/" Then
  159.             Site_label.Text = "Wikipedia"
  160.         End If
  161.         If URL_TextBox.Text = "http://it.wikipedia.org/" Then
  162.             Site_label.Text = "Wikipedia"
  163.         End If
  164.         If URL_TextBox.Text = "http://www.altervista.org/" Then
  165.             Site_label.Text = "Altervista"
  166.         End If
  167.         If URL_TextBox.Text = "http://it.altervista.org/" Then
  168.             Site_label.Text = "Altervista"
  169.         End If
  170.         If URL_TextBox.Text = "http://www.fabriziorocca.tk/" Then
  171.             Site_label.Text = "Il sito di Fabrizio Rocca"
  172.         End If
  173.         If URL_TextBox.Text = "http://www.calzavara.it/" Then
  174.             Site_label.Text = "Calzavara"
  175.         End If
  176.         If URL_TextBox.Text = "http://www.eset.com/" Then
  177.             Site_label.Text = "Eset"
  178.         End If
  179.         If URL_TextBox.Text = "http://www.piriform.com/" Then
  180.             Site_label.Text = "Piriform"
  181.         End If
  182.         If URL_TextBox.Text = "http://www.ccleaner.com/" Then
  183.             Site_label.Text = "CCleaner"
  184.         End If
  185.         If URL_TextBox.Text = "http://www.defraggler.com/" Then
  186.             Site_label.Text = "Defraggler"
  187.         End If
  188.         If URL_TextBox.Text = "http://www.recuva.com/" Then
  189.             Site_label.Text = "Recuva"
  190.         End If
  191.         If URL_TextBox.Text = "http://www.adobe.com/" Then
  192.             Site_label.Text = "Adobe"
  193.         End If
  194.         If URL_TextBox.Text = "http://cdburnerxp.se/" Then
  195.             Site_label.Text = "CDburnerXP"
  196.         End If
  197.         If URL_TextBox.Text = "http://www.logitech.com/" Then
  198.             Site_label.Text = "Logitech"
  199.         End If
  200.         If URL_TextBox.Text = "http://www.nokia.com/" Then
  201.             Site_label.Text = "Nokia"
  202.         End If
  203.         If URL_TextBox.Text = "http://www.winrar.com/" Then
  204.             Site_label.Text = "WinRar"
  205.         End If
  206.         If URL_TextBox.Text = "http://www.openoffice.org/" Then
  207.             Site_label.Text = "Openoffice.org"
  208.         End If
  209.         If URL_TextBox.Text = "http://www.aria.it/" Then
  210.             Site_label.Text = "Aria"
  211.         End If
  212.         If URL_TextBox.Text = "http://www.megaupload.com/" Then
  213.             Site_label.Text = "Megaupload"
  214.         End If
  215.         If URL_TextBox.Text = "http://www.megavideo.com/" Then
  216.             Site_label.Text = "Megavideo"
  217.         End If
  218.         If URL_TextBox.Text = "http://www.megaclick.com/" Then
  219.             Site_label.Text = "Megaclick"
  220.         End If
  221.         If URL_TextBox.Text = "http://www.aruba.it/" Then
  222.             Site_label.Text = "Aruba"
  223.         End If
  224.         If URL_TextBox.Text = "http://www.messenger.it/" Then
  225.             Site_label.Text = "Messenger download"
  226.         End If
  227.         If URL_TextBox.Text = "http://www.pinnaclesys.com/" Then
  228.             Site_label.Text = "Pinnacle"
  229.         End If
  230.  
  231.     End Sub
  232.  
  233.     Private Sub Fake_button_MouseEnter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Fake_button.MouseEnter
  234.         Fake_button.Visible = False
  235.         VAI_button.Visible = True
  236.     End Sub
  237.  
  238.     Private Sub Form1_MouseEnter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.MouseEnter
  239.         Fake_button.Visible = True
  240.         VAI_button.Visible = False
  241.     End Sub
  242.  
  243.     Private Sub VAI_button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles VAI_button.Click
  244.         Navigator.Navigate(URL_TextBox.Text)
  245.     End Sub
  246.  
  247.     Private Sub InfoToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles InfoToolStripMenuItem.Click
  248.         MsgBox("Questo programma è stato creato da: Fabrizio Rocca" + vbCrLf + "Sito web: www.fabriziorocca.tk" + vbCrLf + "Email: fabrizio@rocca.tk" + vbCrLf + "Forum: www.pcexpert.forumfree.net" + vbCrLf + vbCrLf + "                                                     2009")
  249.     End Sub
  250.  
  251.     Private Sub Navigator_ProgressChanged(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserProgressChangedEventArgs) Handles Navigator.ProgressChanged
  252.         Bar.Visible = True
  253.         Bar.Value = e.CurrentProgress * 100 / e.MaximumProgress
  254.         If e.CurrentProgress = e.MaximumProgress Or e.CurrentProgress = 0 Then
  255.             Bar.Visible = False
  256.         End If
  257.     End Sub
  258.  
  259.     Private Sub GroupBox1_MouseEnter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles GroupBox1.MouseEnter
  260.         Fake_button.Visible = True
  261.         VAI_button.Visible = False
  262.     End Sub
  263.  
  264.     Private Sub SpegniInternetPointToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SpegniInternetPointToolStripMenuItem.Click
  265.         Me.Navigator.ShowPropertiesDialog()
  266.     End Sub
  267.  
  268.     Private Sub SorgentiPaginaToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SorgentiPaginaToolStripMenuItem.Click
  269.         Sorgenti.Show()
  270.     End Sub
  271.  
  272.     Private Sub Red_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Red_Lime.Tick
  273.         ListaSitiToolStripMenuItem.BackColor = Color.Red
  274.         ListaSitiToolStripMenuItem.ForeColor = Color.Lime
  275.         ListaProgrammiToolStripMenuItem.BackColor = Color.Lime
  276.         ListaProgrammiToolStripMenuItem.ForeColor = Color.Red
  277.         tmp1.Increment(1)
  278.         If tmp1.Value = "100" Then
  279.             tmp3.Value += 10
  280.             tmp1.Value = 0
  281.             Red_Lime.Stop()
  282.             Lime_Red.Start()
  283.         End If
  284.         If tmp3.Value = "100" Then
  285.             ListaProgrammiToolStripMenuItem.ForeColor = Color.Black
  286.             ListaProgrammiToolStripMenuItem.BackColor = Color.Transparent
  287.             ListaSitiToolStripMenuItem.ForeColor = Color.Black
  288.             ListaSitiToolStripMenuItem.BackColor = Color.Transparent
  289.             Lime_Red.Stop()
  290.             Red_Lime.Stop()
  291.         End If
  292.     End Sub
  293.  
  294.     Private Sub Lime_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Lime_Red.Tick
  295.         ListaSitiToolStripMenuItem.BackColor = Color.Lime
  296.         ListaSitiToolStripMenuItem.ForeColor = Color.Red
  297.         ListaProgrammiToolStripMenuItem.BackColor = Color.Red
  298.         ListaProgrammiToolStripMenuItem.ForeColor = Color.Lime
  299.         tmp2.Increment(1)
  300.         If tmp2.Value = "100" Then
  301.             tmp2.Value = 0
  302.             Lime_Red.Stop()
  303.             Red_Lime.Start()
  304.         End If
  305.  
  306.     End Sub
  307.  
  308.     Private Sub ListaSitiToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListaSitiToolStripMenuItem.Click
  309.  
  310.     End Sub
  311.  
  312.     Private Sub ListaProgrammiToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListaProgrammiToolStripMenuItem.Click
  313.  
  314.     End Sub
  315.  
  316.     Private Sub MenuStrip1_ItemClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.ToolStripItemClickedEventArgs) Handles MenuStrip1.ItemClicked
  317.  
  318.     End Sub
  319. End Class