I am wondering the best way to code this, I know it might not be a hard question, but this has been tickling me for a while:
I am wondering, which constitutes the best coding practice while having Option Strict On:
VB Code:
Btn_toggleUSR.Image = DirectCast(IIf(toggle_usr, Image.FromFile("...\unpressed_down.bmp"), Image.FromFile("...\unpressed_up.bmp")), Drawing.Image)
VB Code:
If toggle_usr Then Btn_toggleUSR.Image = Image.FromFile("...\unpressed_down.bmp") Else Btn_toggleUSR.Image = Image.FromFile("...\unpressed_up.bmp")




Reply With Quote