vb.net - Getting an error when I check a check box -


i have pretty basic program assignment (i'm beginner it's still tricky me) requires enter decimal value, , have check box calculation , show result in different labels. i'm getting errors when checkthe check box no values added.

private sub chkgst_checkedchanged(sender object, e eventargs) handles chkgst.checkedchanged     'get txtdollaramt*const dgst (0.07d) display lblgstoutput. txtdollaramt+dgst, display lbltotaloutput      dim damt string      damt = decimal.parse(txtdollaramt.text)      if chkgst.checked = true         lblgstoutput.text = damt * dgst      end if    end sub 

dim damt decimal   if decimal.tryparse(txtdollaramt.text, damt)     if chkgst.checked = true         lblgstoutput.text = damt * dgst     end if end if     

Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -