Sample Code :
程序代码:
Option Explicit
Private Sub Form_Load()
Dim DataString() As String
DataString = Split(Now, "/")
WebBrowser1.Navigate2 "www."
StatusBar1.Panels(1).Text = "代码谘询请访问网站 : http://www."
StatusBar1.Panels(2).Text = DataString(0) & "年" & DataString(1) & "月" & Mid(DataString(2), 1, InStr(DataString(2), " ") - 1) & "日 " & WeekNum
End Sub
Private Sub Form_Resize()
WebBrowser1.Left = 0
WebBrowser1.Top = 0
WebBrowser1.Width = Form1.Width
WebBrowser1.Height = Form1.Height
End Sub
Private Function WeekNum() As String
Dim NowTime As Date, i As Integer
NowTime = Now
i = Weekday(NowTime, vbMonday)
Select Case i
Case 0
WeekNum = "星期日"
Case 1
WeekNum = "星期一"
Case 2
WeekNum = "星期二"
Case 3
WeekNum = "星期三"
Case 4
WeekNum = "星期四"
Case 5
WeekNum = "星期五"
Case 6
WeekNum = "星期日"
End Select
End Function
至于WebBrowser窗口里面的东西~看你要写在VB中里也行~连到网络上也行~
之前贴过怎用WebBrowser编写网页代码了~这里就不多说了~
个人看起来~把介面切开来~大概就这几项而已~
图片附件: 游客没有浏览图片的权限,请
登录 或
注册
运行的结果大概是这样~
图片附件: 游客没有浏览图片的权限,请
登录 或
注册
[
本帖最后由 wube 于 2011-6-9 11:49 编辑 ]