I have an if statement that is driving me crazy, and I suspect it's something really simple I have missed.
As you can see below, the testBoolean is set to the value True, but for some reason when debugging, it step through both conditions, so in the end the button1.visble becomes False, but I want it to be set to True.
Dim testBoolean As Boolean = True If testBoolean Then button1.Visible = True Else button1.Visible = False End If
If anyone could explain why, I'd be very greatful.
Many thanks,
This post has been edited by modi123_1: 11 October 2011 - 07:36 AM
Reason for edit:: fixed botched code tags

New Topic/Question
Reply



MultiQuote







|