@@ -1399,6 +1399,23 @@ errcode:
13991399 End Try
14001400 End Sub
14011401
1402+ Private Sub PictureBox2_Click(sender As System.Object, e As System.EventArgs) Handles PictureBox2.Click
1403+ If Label3.Text = "设置时间小工具" Then
1404+ Dim a( 5 ) As String
1405+ a( 0 ) = "^_^"
1406+ a( 1 ) = "ahhhhhhhhh?"
1407+ a( 2 ) = "Let's have a try!"
1408+ a( 3 ) = "The quick fox jumps over the lazy brown dog"
1409+ a( 4 ) = "?????????????????"
1410+ a( 5 ) = "Undefine string"
1411+ Dim b As New Random
1412+ Dim c As Integer = b.Next( 0 , 5 )
1413+ Label3.Text = a(c)
1414+ Else
1415+ Label3.Text = "设置时间小工具"
1416+ End If
1417+ End Sub
1418+
14021419 Private Sub ComboBox4_SelectedIndexChanged(sender As System.Object, e As System.EventArgs) Handles ComboBox4.SelectedIndexChanged
14031420 If ComboBox4.SelectedIndex = 0 Then
14041421 If Form1.UnSaveData = 0 Then
@@ -1417,7 +1434,12 @@ errcode:
14171434 End If
14181435 Label17.Text = "99%"
14191436 TrackBar1.Value = 99
1420- Form1.Opacity = 0 . 99
1437+ If Form1.WindowState = FormWindowState.Normal Then
1438+ Form1.Opacity = 0 . 99
1439+ Else
1440+ Form1.Opacity = 1
1441+ End If
1442+
14211443 ElseIf ComboBox4.SelectedIndex = 1 Then
14221444 If Form1.UnSaveData = 0 Then
14231445 RegKeyModule.AddReg( "Software\CJH\TimeControl\Settings" , "TimeTheme" , 1 , RegistryValueKind.DWord, "HKCU" )
@@ -1436,7 +1458,11 @@ errcode:
14361458 Label17.Text = "70%"
14371459 TrackBar1.Value = 70
14381460 Form1.BackgroundImage = Nothing
1439- Form1.Opacity = 0 . 7
1461+ If Form1.WindowState = FormWindowState.Normal Then
1462+ Form1.Opacity = 0 . 7
1463+ Else
1464+ Form1.Opacity = 1
1465+ End If
14401466 ElseIf ComboBox4.SelectedIndex = 2 Then
14411467 If Form1.UnSaveData = 0 Then
14421468 RegKeyModule.AddReg( "Software\CJH\TimeControl\Settings" , "TimeTheme" , 2 , RegistryValueKind.DWord, "HKCU" )
0 commit comments