If My.Forms.Main_frm.UseProxy.Checked = True Then
My.Forms.Main_frm.IPBindingTextbox.Enabled = True
My.Forms.Main_frm.ProxyIPTextbox.Enabled = True
My.Forms.Main_frm.SocksV4.Enabled = True
My.Forms.Main_frm.SocksV5.Enabled = True
My.Forms.Main_frm.ProxyUser.Enabled = True
My.Forms.Main_frm.ProxyPw.Enabled = True
ElseIf My.Forms.Main_frm.UseProxy.Checked = False Then
My.Forms.Main_frm.IPBindingTextbox.Enabled = False
My.Forms.Main_frm.ProxyIPTextbox.Enabled = False
My.Forms.Main_frm.SocksV4.Enabled = False
My.Forms.Main_frm.SocksV5.Enabled = False
My.Forms.Main_frm.ProxyUser.Enabled = False
My.Forms.Main_frm.ProxyPw.Enabled = False
End If
Is there a better way to do that? (By better i mean same result and less lines)