Private Sub txt_URL_KeyPress(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles txt_URL.KeyPress
'txt_URL的按下鍵盤事件
If e.KeyChar = ChrW(13) Then
'如果是Enter鍵的話
WebBrowser1.Navigate(sender.Text)
End If
End Sub
pcman 發表在 痞客邦 留言(0) 人氣(165)
1.
If WebBrowser4.Busy = False Then 'BUSY可以判斷網頁是否再跑
End
If
2.
Private
Sub WebBrowser1_DownloadComplete()
Label1.Text= "完成"
End
Sub
pcman 發表在 痞客邦 留言(0) 人氣(347)
我使用WebBroswer將我TextBox的值要傳入WebBroswer的網頁中時,在網頁中的輸入欄卻是亂碼,
若輸入英文就不會有此問題,只有中文搜尋時會產生亂碼,我認為應該是編碼的問題,請問該如何解決?
ex:
pcman 發表在 痞客邦 留言(0) 人氣(787)
WebBrowser1.Document.Window.ScrollTo(x, y)
pcman 發表在 痞客邦 留言(0) 人氣(669)
WebBrowser 参数原型:
【VB】WebBrowser 8个方法和 13 个属性详解
WebBrowser1.Navigate [Flags,][TargetFrameName,][PostData,][Headers]
【VB】WebBrowser 8个方法和 13 个属性详解
pcman 發表在 痞客邦 留言(0) 人氣(1,133)
' Navigates to the URL in the address box when
' the ENTER key is pressed while the ToolStripTextBox has focus.
Private Sub toolStripTextBox1_KeyDown( _
ByVal sender As Object, ByVal e As KeyEventArgs) _
Handles toolStripTextBox1.KeyDown
If (e.KeyCode = Keys.Enter) Then
Navigate(toolStripTextBox1.Text)
End If
End Sub
' Navigates to the URL in the address box when
' the Go button is clicked.
Private Sub goButton_Click( _
ByVal sender As Object, ByVal e As EventArgs) _
Handles goButton.Click
Navigate(toolStripTextBox1.Text)
End Sub
' Navigates to the given URL if it is valid.
Private Sub Navigate(ByVal address As String)
If String.IsNullOrEmpty(address) Then Return
If address.Equals("about:blank") Then Return
If Not address.StartsWith("http://") And _
Not address.StartsWith("https://") Then
address = "http://" & address
End If
Try
webBrowser1.Navigate(New Uri(address))
Catch ex As System.UriFormatException
Return
End Try
End Sub
' Updates the URL in TextBoxAddress upon navigation.
Private Sub webBrowser1_Navigated(ByVal sender As Object, _
ByVal e As WebBrowserNavigatedEventArgs) _
Handles webBrowser1.Navigated
toolStripTextBox1.Text = webBrowser1.Url.ToString()
End Sub
pcman 發表在 痞客邦 留言(0) 人氣(621)
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.Width = 500
Me.Height = 500
WebBrowser1.Navigate("http://msdn.microsoft.com/zh-tw/default.aspx")
End Sub
Private Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted
With WebBrowser1.Document.Body
.ScrollLeft = .ScrollRectangle.Size.Width
.ScrollTop = .ScrollRectangle.Size.Height
End With
End Sub
pcman 發表在 痞客邦 留言(0) 人氣(71)
Dim encoding As New System.Text.ASCIIEncoding
url = New Uri("http://XXX.XXX.XXX.XXX/alx.asp")
Dim getdata As String = "/abbs/wkw/WHD2A03.jsp?sql_conction=from+W.c50+a%2CW.C52+b+where+a.crtid%3D%27KSD%27+AND+a.crtid%3Db.crtid+AND+a.crmyy%3Db.crmyy+AND+a.crmid%3Db.crmid+AND+a.crmno%3Db.crmno+AND+a.ordno%3Db.ordno+AND+trim%28a.cancel%29+is+null++AND+a.upflag%3D%27F%27++AND+a.saledate%3E%3D%270980227%27++AND+a.saledate%3C%3D%270980529%27+&pageTotal=154&pageSize=15&rowStart=1&saletype=5&proptype=C52&court=KSD&order=odcrm&query_type=session&pageNow=2"
Dim data As Byte() = encoding.GetBytes(getdata)
Dim myRequest As HttpWebRequest = HttpWebRequest.Create(url)
webRes = myRequest.GetResponse
ReadHisValue(webRes.GetResponseStream)
myRequest.Method = "GET"
myRequest.ContentLength = data.Length
Dim newStream As IO.Stream
newStream = myRequest.GetRequestStream()
'通常我的程式都只執行到上面這行後就跳掉了?
newStream.Write(data, 0, data.Length)
newStream.Close()
pcman 發表在 痞客邦 留言(0) 人氣(721)
Private Sub Command1_Click()
WebBrowser1.Navigate "http://www.hinet.net"
End Sub
Private Sub WebBrowser1_DocumentComplete(ByVal pDisp As Object, URL As Variant)
WebBrowser1.SetFocus
SendKeys "^{End}"
End Sub
pcman 發表在 痞客邦 留言(0) 人氣(364)
有機發光二極體(有機發光二極管,簡稱 OLED)的與 TFT - LCD的“薄膜電晶體液晶顯示器”(薄膜晶體管液晶顯示器)是不同類型的產品。
部分國外又稱 OLED的為有機電激發光顯示(有機 Electroluminesence顯示,OELD)。
的OLED具有自發光性,廣視角,高對比,低耗電,高反應速率,全彩化,制程簡單等優點,
OLED的顯示器的種類可分單色,多彩及全彩等種類,而其中以全彩製作技術最為困難,
pcman 發表在 痞客邦 留言(0) 人氣(24)