[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 247
  • Last Modified:

vb net how do i disable a drop list when radio button equals a certain value

vb net how do i disable a drop list when radio button equals a certain value
0
9772885
Asked:
9772885
  • 2
1 Solution
 
Steve KrileCommented:
Do you mean when a Radio button is selected?  Radio buttons have values associated with them, but these values are (generally) not set by users.
0
 
UnifiedISCommented:
You can use the CheckedChanged event of the radio button:

Private Sub RadioButton1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton1.CheckedChanged
        If RadioButton1.Checked Then
            cbo.Enabled = False
        End If
    End Sub
0
 
Steve KrileCommented:
I think we may need a bit more info to answer your question.  Can you post the code for the controls you want to change and under what condition they will need to change?
0

Featured Post

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now