Private Sub Form_Load()
Text1.FontSize = 22
Text1.ForeColor = QBColor(12)
End Sub
Text1.FontSize = 22
Text1.ForeColor = QBColor(12)
End Sub
解决方案 »
- 坐标轴坐标值问题
- 自制记忆软件,VB制作,求高手指导!
- 我用EnumChildWindows获取了一个窗体中的控件类型,但是有几个类名不知道什么意思,求助各位。
- 能否用VB制作一个自带数据库的exe文件
- VB开发电子秤方面的问题
- 如果你是使用CrystalReport的高手,请你决对进来看一看.如何使用Craxdrt.Report对象在程式中进行分栏?
- 在VB中执行另一个正在运行的程序中的某个按钮,该怎么做
- 请教一个简单的问题
- 问一个OCX控件问题
- 各位看官走过路过不要错过!!!图像操作问题!!答对有分!答错没分!
- 关于关机的弱智问题
- 关于在ToolBar的按钮中加入图标的问题??? 急急急!
Text1.FontSize = 大小
Text1.ForeColor = RGB(255,0,255)
End Sub
Dim aboutstring As String
aboutstring = MsgBox("windows98界面模仿1.0,小小设计", vbYesNo, "关于")
End SubPrivate Sub Check1_Click()
If Check1.Value = 1 Then
Text1.FontSize = 12
Else
Text1.FontSize = 9
End If
End SubPrivate Sub Check2_Click()
If Check2.Value = 1 Then
Text1.FontItalic = True
Else
Text1.FontItalic = False
End If
End SubPrivate Sub FontIt_Click()
Text1.FontItalic = True
FontIt.Checked = True
End SubPrivate Sub Form_Load()
FontIt.Checked = False
Frame1.Visible = False
Frame2.Visible = False
Dim password As String
password = InputBox("输入密码", "密码框")
Do While password <> "xiaoxiao"
password = InputBox("输入密码", "密码框")
Loop
End SubPrivate Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Frame1.Visible = False
Frame2.Visible = False
End SubPrivate Sub Form_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 2 Then
PopupMenu File
End If
End SubPrivate Sub Form_Resize()
start.Top = ScaleHeight - start.Height - StatusBar1.Height
start.Left = 0
Frame1.Left = start.Left
Frame1.Top = start.Top - Frame1.Height
Text1.Top = ScaleHeight - Text1.Height - StatusBar1.Height
Text1.Left = ScaleHeight - Text1.Width
Label1.Left = Text1.Top + Text1.Width / 2 - Label1.Width / 2
Label1.Top = Text1.Top - Label1.Height - 30
End SubPrivate Sub List1_Click()
Dim myexit As String
Select Case List1.ListIndex
Case 1
setupbackground.Show
Case 2
Toolbar1.Visible = True
Case 3
Toolbar1.Visible = False
Case 6
Frame2.Visible = True
Case 7
myexit = MsgBox("确实想退出吗?", vbExclamation + vbYesNo, "退出")
If myexit = vbYes Then
End
End If
End Select
End SubPrivate Sub MyBlue_Click()
Text1.ForeColor = QBColor(1)
End SubPrivate Sub myclose_Click()
End
End SubPrivate Sub MyRed_Click()
Text1.ForeColor = QBColor(12)
End SubPrivate Sub Option1_Click()
Form1.Picture = LoadPicture("C:\WINDOWS\Web\Wallpaper\Bliss.bmp")
End SubPrivate Sub Option2_Click()
Form1.Picture = LoadPicture()
End SubPrivate Sub scalefont_Click()
Text1.FontSize = 12
End SubPrivate Sub start_Click()
Frame1.Visible = True
End SubPrivate Sub Timer1_Timer()
Label4.Caption = Time
End SubPrivate Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)
Dim myexit As String
Select Case Button.Key
Case "key1"
Frame2.Visible = True
Case "key2"
myexit = MsgBox("确实想退出吗?", vbYesNo + 48, "退出")
If myexit = vbYes Then
End
End If
Case "key3"
setupbackground.Show
Case "key4"
Text1.FontSize = 12
End Select
End Sub
这是我的一个小程序,其中有你要的东东,你自己看一下吧,希望对你有帮助