Public Sub Form_Open()
Dim Label1 As Label
Dim gastos As Single = 100993.78
Dim devoluciones As Single = 0
Dim sGastos, sDevoluciones As String
Dim LenGastos, LenDevoluciones As Short
System.Language = "es_ES.UTF-8"
With Label1 = New Label(Me)
.Height = 100
.Width = 500
.X = 10
.Y = 10
.Font = Font["Noto Mono, Bold, 14"] ''Importante
End With
sGastos = Format(gastos, "-#,##0.00 €")
LenGastos = Len(sGastos)
sDevoluciones = Format(devoluciones, "-#,##0.00 €")
LenDevoluciones = Len(sDevoluciones)
Label1.Text = "Nº de movimientos/mes es: " & "39" & "\n" & " Gastado:" & Space(20 - LenGastos) & sGastos & "\n" & "Reembolsado:" & Space(20 - LenDevoluciones) & sDevoluciones
End
Dim Label1 As Label
Dim gastos As Single = 100993.78
Dim devoluciones As Single = 0
Dim sGastos, sDevoluciones As String
Dim LenGastos, LenDevoluciones As Short
System.Language = "es_ES.UTF-8"
With Label1 = New Label(Me)
.Height = 100
.Width = 500
.X = 10
.Y = 10
.Font = Font["Noto Mono, Bold, 14"] ''Importante
End With
sGastos = Format(gastos, "-#,##0.00 €")
LenGastos = Len(sGastos)
sDevoluciones = Format(devoluciones, "-#,##0.00 €")
LenDevoluciones = Len(sDevoluciones)
Label1.Text = "Nº de movimientos/mes es: " & "39" & "\n" & " Gastado:" & Space(20 - LenGastos) & sGastos & "\n" & "Reembolsado:" & Space(20 - LenDevoluciones) & sDevoluciones
End