diff --git a/KeyPage/KeyPageV.xaml.vb b/KeyPage/KeyPageV.xaml.vb index c141734..c82a51e 100644 --- a/KeyPage/KeyPageV.xaml.vb +++ b/KeyPage/KeyPageV.xaml.vb @@ -18,7 +18,7 @@ textBoxNote.Height = originalTextBoxHeight * textBoxNote.LineCount numberOfLines = textBoxNote.LineCount End If - If (numberOfLines > textBoxNote.LineCount) Then + If (numberOfLines > textBoxNote.LineCount) And Not textBoxNote.LineCount = 0 Then textBoxNote.Height = textBoxNote.Height - (originalTextBoxHeight * (numberOfLines - textBoxNote.LineCount)) numberOfLines = textBoxNote.LineCount End If diff --git a/My Project/AssemblyInfo.vb b/My Project/AssemblyInfo.vb index 7f6d6f8..6fdc3e4 100644 --- a/My Project/AssemblyInfo.vb +++ b/My Project/AssemblyInfo.vb @@ -59,5 +59,5 @@ Imports System.Windows ' usando l'asterisco '*' come illustrato di seguito: ' - - + + diff --git a/NewLicencePage/NewLicencePageV.xaml.vb b/NewLicencePage/NewLicencePageV.xaml.vb index aa099c1..a6db1fe 100644 --- a/NewLicencePage/NewLicencePageV.xaml.vb +++ b/NewLicencePage/NewLicencePageV.xaml.vb @@ -11,7 +11,7 @@ textBoxNote.Height = originalTextBoxHeight * textBoxNote.LineCount numberOfLines = textBoxNote.LineCount End If - If (numberOfLines > textBoxNote.LineCount) Then + If (numberOfLines > textBoxNote.LineCount) And Not textBoxNote.LineCount = 0 Then textBoxNote.Height = textBoxNote.Height - (originalTextBoxHeight * (numberOfLines - textBoxNote.LineCount)) numberOfLines = textBoxNote.LineCount End If