I need to store the values of my input text boxes into the variables I have declared (in bold) . My text boxes atr txtInitialValue , txtAssetLife and txtSalvageValue . Can anyone help? Here is my code:
Option Explicit On
Option Strict On
Imports System.Convert
Public Class frmMain
Inherits System.Windows. Forms.Form
Private mlblInitialValu e As Double
Private mlblSalvageValu e As Double
Private mlblAssetLife As Single
Private Const cintCol1Start As Integer = 100
Private Const cintCol2Start As Integer = 250
Private Const cintCol3Start As Integer = 400
Private Const cintCol4Start As Integer = 550
Private Const cintColWidth As Integer = 150
Private mfntPrint As Font
Private msngFontHeight As Single
Private msngYPos As Single
Private mfnrPrint As Font
Option Explicit On
Option Strict On
Imports System.Convert
Public Class frmMain
Inherits System.Windows. Forms.Form
Private mlblInitialValu e As Double
Private mlblSalvageValu e As Double
Private mlblAssetLife As Single
Private Const cintCol1Start As Integer = 100
Private Const cintCol2Start As Integer = 250
Private Const cintCol3Start As Integer = 400
Private Const cintCol4Start As Integer = 550
Private Const cintColWidth As Integer = 150
Private mfntPrint As Font
Private msngFontHeight As Single
Private msngYPos As Single
Private mfnrPrint As Font
Comment