• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 337
  • Last Modified:

VB.net Visual Basic combo

Hi,
In visual basic Combo we can know whether the comboBox is bound or not by
  If Val(combo.BoundText) = 0
What is the equivalent to know in .NET winform comboBox
0
dotnet0824
Asked:
dotnet0824
2 Solutions
 
jpaulinoCommented:
You can check if the datasource is nothing
0
 
Priest04Commented:
If ComboBox1.DataSource Is Nothing Then
    MessageBox.Show("Control is not bound!")
End If

Goran
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

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