ms
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
Imports System.Xml
|
||||
Imports System.IO
|
||||
Imports DD_LIB_Standards
|
||||
|
||||
Public Class ClassWindowLocation
|
||||
|
||||
@@ -35,7 +36,7 @@ Public Class ClassWindowLocation
|
||||
End Select
|
||||
|
||||
If x = 5000 Then
|
||||
form.WindowState = FormWindowState.Maximized
|
||||
form.WindowState = FormWindowState.Maximized
|
||||
Else
|
||||
If x > 0 Then
|
||||
form.Location = New Point(x, y)
|
||||
@@ -46,7 +47,7 @@ Public Class ClassWindowLocation
|
||||
|
||||
Next
|
||||
Catch notFoundEx As System.IO.FileNotFoundException
|
||||
ClassLogger.Add("Window Position & Size added for Form " & form.Name)
|
||||
clsLogger.Add("Window Position & Size added for Form " & form.Name)
|
||||
Catch ex As Exception
|
||||
MsgBox("Error while loading Window Position!" & vbNewLine & ex.Message, MsgBoxStyle.Critical)
|
||||
End Try
|
||||
@@ -81,7 +82,7 @@ Public Class ClassWindowLocation
|
||||
|
||||
layout.Save(settings)
|
||||
Catch notFoundEx As System.IO.FileNotFoundException
|
||||
ClassLogger.Add("Window Position & Size added for Form " & form.Name)
|
||||
clsLogger.Add("Window Position & Size added for Form " & form.Name)
|
||||
Catch ex As Exception
|
||||
MsgBox("Error while saving Window Position!" & vbNewLine & ex.Message, MsgBoxStyle.Critical)
|
||||
End Try
|
||||
|
||||
Reference in New Issue
Block a user