Try a ternary operator.
Me.Backcolor = If(rdoRed.Checked, rdoRed.Forecolor, [some other color])
Like this example:
Is there a conditional ternary operator in VB.NET?
4
solved vb.NET If Then Replacement
Try a ternary operator.
Me.Backcolor = If(rdoRed.Checked, rdoRed.Forecolor, [some other color])
Like this example:
Is there a conditional ternary operator in VB.NET?
4
solved vb.NET If Then Replacement