I'm having trouble with what should seem like an obviously easy task. I've bound a text box with data from a data table (dt) and the correct value is placed into the text box:
txtBalanceDue.DataBindings.Clear()
fldBind = New Binding("text", dt, "Balance")
AddHandler fldBind.Format, New ConvertEventHandler(AddressOf DecimalToCurrencyString)
AddHandler fldBind.Parse, New ConvertEventHandler(AddressOf CurrencyStringToDecimal)
txtBalanceDue.DataBindings.Add(fldBind)
I need to make some calculations based upon the value in the text box. I am unable to access that value using:
Dim val as string
val = txtBalanceDue.text
I must be missing something very simple... am a newbie to vb.NET programming, but am and experienced VB programmer.
Can someone please point me to the error in my ways.
TIA,
--------------------------------
From: Susan Watters
-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>hSB4HP+LCESO/hxtQYidgA==</Id>