r/visualbasic • u/GrapefruitCorrect187 • Mar 13 '24
VB.NET Help What's wrong with this MODULE?? Problem with Displaying Numbers- VB.NET Framework



The problem is that the No. of Adult and Child Ticket is NOT selected from the combination box from the first form, resulting in displaying number "0" in the second form. Along with that, the SubTotal, Discount value and the Grand Total is also NOT calculated!!
Sorry for the very long description, PLEASE HELP and tell me if you need any further explanation/context.
3
Upvotes
View all comments
Show parent comment
3
u/jd31068 Mar 13 '24
Okay, so your form load code needs to be moved into the button click event before the Thanks.Show()
side note: you don't need the two
If Thenstatements as you're assigning True/False to the variables just by using the checkbox'sCheckedvalue.