@@ -142,7 +142,7 @@ errcode:
142142 TextBox4.Enabled = True
143143 Button9.Enabled = True
144144 End If
145-
145+
146146 Else
147147 Me .CheckBox4.Checked = False
148148 If Form1.DisbFuState = 0 Then
@@ -208,7 +208,7 @@ errcode:
208208 ComboBox4.SelectedText = "自定义背景"
209209 End If
210210
211- Label1.Text = "时间小工具 版本:" & My.Application.Info.Version.ToString & vbCrLf & "版权所有 © 2022-2024 CJH。"
211+ Label1.Text = "时钟小工具 版本:" & My.Application.Info.Version.ToString & vbCrLf & "版权所有 © 2022-2024 CJH。"
212212 Call formatcolorcurset()
213213 End Sub
214214 Private Sub TextBox1_KeyPress( ByVal sender As Object , ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress
@@ -537,7 +537,7 @@ errcode:
537537 'ElseIf disi.DpiY > 160 Then
538538 ' Form1.SetTimeFormSize(aa.Height - 30 * disi.DpiY * 0.01, aa.Width - 120 - 800 * disi.DpiY * 0.01)
539539 'End If
540-
540+
541541 'If disi.DpiY < 100 Then
542542 ' If aa.Width <= 42 Then
543543 ' Form1.SetTimeFormSize(Form1.Label1.Font.Size * disi.DpiY * 0.01 + disi.DpiY * 0.01 * 20, aa.Width + 8)
@@ -871,7 +871,7 @@ errcode:
871871 TextBox2.Enabled = False
872872 Button4.Enabled = False
873873 End If
874-
874+
875875 'Form1.GetTimeFormSize(38, 300)
876876 'a = Form1.Width - Form1.CaW
877877 'If a <> 0 Then
@@ -984,7 +984,7 @@ errcode:
984984 c = 0
985985 Form1.SetTimeFormSize(a.Height + 3 , a.Width + 3 )
986986 End If
987-
987+
988988 'Form1.Label1.AutoSize = False
989989 If Form1.UnSaveData = 0 Then
990990 RegKeyModule.AddReg( "Software\CJH\TimeControl\Settings" , "CustomFormat" , TextBox2.Text, RegistryValueKind.String, "HKCU" )
@@ -1004,7 +1004,7 @@ errcode:
10041004 'RemoveHandler CheckBox3.CheckedChanged, AddressOf CheckBox3_CheckedChanged
10051005 'RemoveHandler CheckBox4.CheckedChanged, AddressOf CheckBox4_CheckedChanged
10061006 Try
1007- AddReg( "Software\CJH\TimeControl\Settings" , "ColorMode" , 0 , Microsoft.Win32.RegistryValueKind.DWord, "HKCU" )
1007+ AddReg( "Software\CJH\TimeControl\Settings" , "ColorMode" , 0 , Microsoft.Win32.RegistryValueKind.DWord, "HKCU" )
10081008
10091009
10101010 If Form1.UnSupportDarkSys = 1 Then
@@ -1133,30 +1133,30 @@ errcode:
11331133 Form1.Location = New Size((System.Windows.Forms.SystemInformation.PrimaryMonitorSize.Width - Form1.Width) / 2 , 5 )
11341134
11351135
1136- RegKeyModule.AddReg( "Software\CJH\TimeControl\Settings" , "TimeFormOpacity" , 100 , RegistryValueKind.DWord, "HKCU" )
1136+ RegKeyModule.AddReg( "Software\CJH\TimeControl\Settings" , "TimeFormOpacity" , 100 , RegistryValueKind.DWord, "HKCU" )
11371137
11381138
1139- Form1.CustOpacity = 100
1140- Label17.Text = "99%"
1141- Form1.Opacity = 0 . 99
1142- TrackBar1.Value = 99
1139+ Form1.CustOpacity = 100
1140+ Label17.Text = "99%"
1141+ Form1.Opacity = 0 . 99
1142+ TrackBar1.Value = 99
11431143
1144- CheckBox5.Checked = False
1144+ CheckBox5.Checked = False
11451145
1146- Call Form1.formatcolorcur()
1147- Call formatcolorcurset()
1148- Call MsgForm.formatcolorcursetmsg()
1149- Call GPLForm.formatcolorcursetmsg()
1146+ Call Form1.formatcolorcur()
1147+ Call formatcolorcurset()
1148+ Call MsgForm.formatcolorcursetmsg()
1149+ Call GPLForm.formatcolorcursetmsg()
11501150
11511151
1152- '如果预先关联事件, Me.CheckBox1.Checked = Ture / Flase 操作会触发事件,导致操作相反
1153- 'AddHandler CheckBox1.CheckedChanged, AddressOf CheckBox1_CheckedChanged
1154- 'AddHandler CheckBox2.CheckedChanged, AddressOf CheckBox2_CheckedChanged
1155- 'AddHandler CheckBox3.CheckedChanged, AddressOf CheckBox3_CheckedChanged
1156- 'AddHandler CheckBox4.CheckedChanged, AddressOf CheckBox4_CheckedChanged
1152+ '如果预先关联事件, Me.CheckBox1.Checked = Ture / Flase 操作会触发事件,导致操作相反
1153+ 'AddHandler CheckBox1.CheckedChanged, AddressOf CheckBox1_CheckedChanged
1154+ 'AddHandler CheckBox2.CheckedChanged, AddressOf CheckBox2_CheckedChanged
1155+ 'AddHandler CheckBox3.CheckedChanged, AddressOf CheckBox3_CheckedChanged
1156+ 'AddHandler CheckBox4.CheckedChanged, AddressOf CheckBox4_CheckedChanged
11571157 Catch ex As Exception
1158- MsgBox( "恢复默认设置失败。" & vbCrLf & ex.Message, MsgBoxStyle.Critical, "错误" )
1159- End Try
1158+ MsgBox( "恢复默认设置失败。" & vbCrLf & ex.Message, MsgBoxStyle.Critical, "错误" )
1159+ End Try
11601160 End If
11611161 End Sub
11621162
@@ -1613,35 +1613,35 @@ errcode:
16131613 End If
16141614 End If
16151615 Else
1616- If Form1.MySize = 0 Then
1616+ If Form1.MySize = 0 Then
16171617 Form1.Label1.Text = Format(Now(), Form1.TimeF)
16181618 Form1.Timer1.Interval = 1000
1619- Dim aa As SizeF
1620- Dim b As Graphics = Graphics.FromImage( New Bitmap( 1 , 1 ))
1619+ Dim aa As SizeF
1620+ Dim b As Graphics = Graphics.FromImage( New Bitmap( 1 , 1 ))
16211621 aa = TextRenderer.MeasureText(Form1.Label1.Text, Form1.Label1.Font)
1622- Dim c As Integer
1623- If aa.Width <= 42 Then
1624- Form1.GetTimeFormSize( 38 , aa.Width + 8 )
1625- ElseIf 400 <= aa.Width Then
1622+ Dim c As Integer
1623+ If aa.Width <= 42 Then
1624+ Form1.GetTimeFormSize( 38 , aa.Width + 8 )
1625+ ElseIf 400 <= aa.Width Then
16261626 Form1.GetTimeFormSize(aa.Height, aa.Width + 10 )
1627- Else
1628- Form1.GetTimeFormSize( 38 , aa.Width + 6 )
1629- End If
1630- c = Form1.Width - Form1.CaW
1631- If c <> 0 Then
1632- Form1.Location = New Point(Form1.Location.X + c / 2 , Form1.Location.Y)
1627+ Else
1628+ Form1.GetTimeFormSize( 38 , aa.Width + 6 )
1629+ End If
1630+ c = Form1.Width - Form1.CaW
1631+ If c <> 0 Then
1632+ Form1.Location = New Point(Form1.Location.X + c / 2 , Form1.Location.Y)
16331633 If Form1.SaveLoc = 1 Then
16341634 If Form1.UnSaveData = 0 Then
16351635 RegKeyModule.AddReg( "Software\CJH\TimeControl\Settings" , "TimeFormX" , Form1.Location.X, RegistryValueKind.DWord, "HKCU" )
16361636 RegKeyModule.AddReg( "Software\CJH\TimeControl\Settings" , "TimeFormY" , Form1.Location.Y, RegistryValueKind.DWord, "HKCU" )
16371637 End If
16381638
16391639 End If
1640- End If
1641- c = 0
1642- Form1.SetTimeFormSize(aa.Height, aa.Width)
16431640 End If
1641+ c = 0
1642+ Form1.SetTimeFormSize(aa.Height, aa.Width)
16441643 End If
1644+ End If
16451645 End Sub
16461646
16471647 Private Sub LinkLabel3_LinkClicked(sender As System.Object, e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles LinkLabel3.LinkClicked
@@ -1658,7 +1658,7 @@ errcode:
16581658 End Sub
16591659
16601660 Private Sub LinkLabel5_LinkClicked(sender As System.Object, e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles LinkLabel5.LinkClicked
1661- MessageBox.Show( "当前支持的命令行:" & vbCrLf & "/safemode 以安全模式加载,不读取设置也不保存设置。当程序由于配置原因无法正常启动,可以使用该命令行启动后恢复默认设置。" & vbCrLf & "/noproflie 不使用配置文件。" & vbCrLf & "/nosaveprofile 读取设置但不保存设置" & vbCrLf & vbCrLf & "部分功能可能因为策略设置而不可用。命令行的内容要优先于策略设置,为单一用户设置的策略优先级高于针对所有用户设置的策略(需要以管理员身份启动本程序以应用针对所有用户设置的策略) 。" , "帮助" , MessageBoxButtons.YesNo , MessageBoxIcon.Information)
1661+ MessageBox.Show( "当前支持的命令行:" & vbCrLf & "/safemode 以安全模式加载,不读取设置也不保存设置。当程序由于配置原因无法正常启动,可以使用该命令行启动后恢复默认设置。" & vbCrLf & "/noproflie 不使用配置文件。" & vbCrLf & "/nosaveprofile 读取设置但不保存设置" & vbCrLf & vbCrLf & "部分功能可能因为策略设置而不可用。命令行的内容要优先于策略设置,为所有用户设置的策略优先级高于针对单一用户设置的策略 。" , "帮助" , MessageBoxButtons.OK , MessageBoxIcon.Information)
16621662 End Sub
16631663
16641664 Private Sub Button12_Click(sender As System.Object, e As System.EventArgs) Handles Button12.Click
0 commit comments