Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Codigos

1,267 views

Published on

Los Codigos para el Navegador Web

Published in: Spiritual, Technology
  • Be the first to comment

  • Be the first to like this

Codigos

  1. 1. Dim int As Integer = 0____________________________________________________________________________________________Private Sub Loading(ByVal sender As Object, ByVal e AsWindows.Forms.WebBrowserProgressChangedEventArgs) ToolStripProgressBar1.Maximum = e.MaximumProgress ToolStripProgressBar1.Value = e.CurrentProgress End Sub_____________________________________________________________________________________________Private Sub Done(ByVal sender As Object, ByVal e AsWindows.Forms.WebBrowserDocumentCompletedEventArgs) TabControl1.SelectedTab.Text = CType(TabControl1.SelectedTab.Controls.Item(0),WebBrowser).DocumentTitle ComboBox1.Text = CType(TabControl1.SelectedTab.Controls.Item(0),WebBrowser).Url.ToString End Sub______________________________________________________________________________________________Form1:Dim Browser As New WebBrowser TabControl1.TabPages.Add("New Page") Browser.Name = "Web Browser" Browser.Dock = DockStyle.Fill TabControl1.SelectedTab.Controls.Add(Browser) AddHandler Browser.ProgressChanged, AddressOf Loading AddHandler Browser.DocumentCompleted, AddressOf Done int = int + 1
  2. 2. CType(TabControl1.SelectedTab.Controls.Item(0), WebBrowser).GoHome()_______________________________________________________________________Agregar Pestañas: Dim Browser As New WebBrowser TabControl1.TabPages.Add("New Page") TabControl1.SelectTab(int) Browser.Name = "Web Browser" Browser.Dock = DockStyle.Fill TabControl1.SelectedTab.Controls.Add(Browser) AddHandler Browser.ProgressChanged, AddressOf Loading AddHandler Browser.DocumentCompleted, AddressOf Done int = int + 1 CType(TabControl1.SelectedTab.Controls.Item(0), WebBrowser).GoHome()_____________________________________________________________________Quitar Pestañas: If Not TabControl1.TabPages.Count = 1 Then TabControl1.TabPages.RemoveAt(TabControl1.SelectedIndex) TabControl1.SelectTab(TabControl1.TabPages.Count - 1) int = int - 1 End If_______________________________________________________________________________Propiedades:
  3. 3. CType(TabControl1.SelectedTab.Controls.Item(0), WebBrowser).ShowPropertiesDialog()_________________________________________________________________________________Timer:ToolStripStatusLabel1.Text = CType(TabControl1.SelectedTab.Controls.Item(0),WebBrowser).StatusText__________________________________________________________________________________Atras:CType(TabControl1.SelectedTab.Controls.Item(0), WebBrowser).GoBack()__________________________________________________________________________________Adelante:CType(TabControl1.SelectedTab.Controls.Item(0), WebBrowser).GoForward()__________________________________________________________________________________Actualizar:CType(TabControl1.SelectedTab.Controls.Item(0), WebBrowser).Refresh()___________________________________________________________________________________Inicio:
  4. 4. CType(TabControl1.SelectedTab.Controls.Item(0), WebBrowser).GoHome()___________________________________________________________________________________Ir /GoCType(TabControl1.SelectedTab.Controls.Item(0), WebBrowser).Navigate(ComboBox1.Text)__________________________________________________________________________________

×