MS18042016
This commit is contained in:
@@ -10,7 +10,11 @@ Public Class ClassWindowLocation
|
||||
_pathold = _path.Replace("frm", "frmfrm")
|
||||
If File.Exists(_pathold) Then
|
||||
Dim newfilename = Path.GetFileName(_path)
|
||||
My.Computer.FileSystem.RenameFile(_pathold, newfilename)
|
||||
Try
|
||||
My.Computer.FileSystem.RenameFile(_pathold, newfilename)
|
||||
Catch ex As Exception
|
||||
My.Computer.FileSystem.DeleteFile(_pathold)
|
||||
End Try
|
||||
_path = Path.Combine(Application.UserAppDataPath(), form.Name & "-Layout.xml")
|
||||
End If
|
||||
Dim layout As ClassLayout = New ClassLayout(_path)
|
||||
|
||||
Reference in New Issue
Block a user