vbnet2010源碼
❶ 求vb.net的源代碼,最好說明其解決問題,越多越好,滿意加50分。
下面這段代碼,是我用來計算每個月存500元進銀行,連續30年,最後連本帶利能有多少錢。這裡面涉及復利計算。界面中右邊的文本框用來輸出每一次計算的結果。
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim nianxian As Integer '年限變數
Dim dingcun As Integer '定存變數
Dim fuli_big As Long '大復利
Dim fuli_small As Long '小復利
Dim i As Integer '循環變數
Dim DATAstring As String '數據字元串
nianxian = Val(年限_TextBox.Text)
dingcun = Val(定存_TextBox.Text)
DATAstring = ""
For i = 1 To nianxian
fuli_small = dingcun * (1 + 0.1875)
dingcun = fuli_small
fuli_big = fuli_big + fuli_small
DATAstring = DATAstring + "[" + Trim(Str(i)) + "]" + Str(fuli_big) + Chr(13) + Chr(10)
'DATAstring = DATAstring + "[" + Trim(Str(i)) + "]" + Str(fuli_small) + Chr(13) + Chr(10)
Next
'fuli_big = fuli_small
TextBox1.Text = DATAstring
結果_TextBox.Text = Str(fuli_big) + "元"
End Sub
❷ vb.net 2010 Form1窗口下 如何獲webbrowser 貌似是用GetClassName()函數
參考答案: 欲加之罪,何患無辭。(左傳)
❸ 如何用vb.net獲得網頁的源代碼
Dim url As String=" 網址"
Dim httpReq As System.Net.HttpWebRequest
Dim httpResp As System.Net.HttpWebResponse
Dim httpURL As New System.Uri(url)
httpReq = CType(WebRequest.Create(httpURL), HttpWebRequest)
httpReq.Method = "GET"
httpResp = CType(httpReq.GetResponse(), HttpWebResponse)
httpReq.KeepAlive = False ' 獲取或設置一個值,該值指示是否與
Internet資源建立持久連接。
Dim reader As StreamReader = _
New StreamReader(httpResp.GetResponseStream,
System.Text.Encoding.GetEncoding(-0))
Dim respHTML As String = reader.ReadToEnd() 'respHTML就是網頁源代碼
❹ 如何用vb.net獲取網頁源代碼
使用webbrowser控制項來載入網頁,然後再
Private
Sub
WebBrowser
1_DocumentCompleted下通過使用WebBrowser1.Document.Body.
InnerHtml
來獲取網頁的源代碼,或使用
WebBrowser1.Document.Body.InnerText來獲取網頁中的文本。之後可以通過字元串控制指令或者
正則表達式
來精確獲取到你所需的數據。
❺ VB.NET2010
"" 就是空字元串。執行 Text1.Text = "" 後,文本框 Text1 就被清空了。
❻ 急求vb.net編的俄羅斯方塊源碼一份,要能在visual studio2010上運行,也可以直接發解決方案
c#的,湊合吧
順便一說,解決方案就是源碼的說。
❼ vb.net2010中,如何實現單據列印,請各位高手提供一些源碼和一些教程,萬分感謝!
vb 里有printer對象,列印很簡單。
vb.net 升級為
Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6 .Printer
這個沒用過,你研究下