久违的--大二下学期第一章
来源:互联网 发布:淘宝客助手破解版 编辑:程序博客网 时间:2024/05/19 22:51
Imports System.MathPublic Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim h%, m%, s%, x% x = Val(TextBox1.Text) s = x Mod 60 m = (x \ 60) Mod 60 h = x \ 3600 Label2.Text = h & ":" & m & ":" & s End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Me.Height = 250 End Sub Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click Me.Height = 400 End Sub Private Sub Label3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label3.Click Dim c As Char c = Trim(ComboBox1.Text) Select Case c Case "+" TextBox4.Text = Val(TextBox2.Text) + Val(TextBox3.Text) Case "-" TextBox4.Text = Val(TextBox2.Text) - Val(TextBox3.Text) Case "*" TextBox4.Text = Val(TextBox2.Text) * Val(TextBox3.Text) Case "/" TextBox4.Text = Val(TextBox2.Text) / Val(TextBox3.Text) End Select End Sub Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click TextBox6.Text = Sin(Val(TextBox5.Text)) End Sub Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click TextBox6.Text = Sqrt(Val(TextBox5.Text)) End Sub Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click TextBox6.Text = Oct(Val(TextBox5.Text)) End Sub Private Sub Button7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button7.Click TextBox6.Text = Cos(Val(TextBox5.Text)) End Sub Private Sub Button8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button8.Click TextBox6.Text = Log(Val(TextBox5.Text)) End Sub Private Sub Button9_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button9.Click TextBox6.Text = Hex(Val(TextBox5.Text)) End Sub Private Sub Button10_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button10.Click Dim i As Integer, c As Char Randomize() Label4.Text = "" For i = 1 To 10 Label4.Text &= Chr(Int(Rnd() * 26 + 65)) & " " Next End SubEnd Class
好久不写,感觉手生了不少
赶紧捡起节操。久违了-CSDN
0 0
- 久违的--大二下学期第一章
- 大二下学期的想法。
- 关于大二下学期以来的总结
- 大二下学期总结
- 大二下学期总结
- 大二下学期
- 大二下学期感慨
- 大二下学期目标
- 大二下学期总结
- 大二下学期开始
- 大二下学期计划
- 大二下学期学习总结
- 大二下学期阶段目标
- 大二下学期java课程设计
- 大二下学期JSP学习中遇到的问题
- 写在心有余力有余的大二下学期
- 大二下学期课表 2005.02~2005.07
- 2005年大二下学期总结
- Auto Layout用法剖析(2)
- [BZOJ1485] [HNOI2009]有趣的数列 && 找规律 + 数学
- hdoj 2503 a/b + c/d
- java学习总结——你的前世今生
- Linux下python升级步骤
- 久违的--大二下学期第一章
- 利用iTunes导入文件到Document文件夹(文件共享)
- 问题:线索二叉树是一种_____结构。 A. 逻辑 B. 逻辑和存储 C. 物理 D. 线性
- updatefile.sh - Linux下代码更新脚本
- Memcached(二)Memcached命令
- 有感而发
- linux系统下的命令自动运行
- VMProtect 与 ASProtect 在VC中的SDK编程 (转)
- 给定一种颜色,获取颜色的A R G B值