Any will help will appreciated. Every time I run my code my list city still visible at run time how do i make not to visible when I run my vb code.
lstCity.Visible = False
Any will help will appreciated. Every time I run my code my list city still visible at run time how do i make not to visible when I run my vb code.
lstCity.Visible = False
You should add the code for hiding it at your main form's load event. Assuming your form's name is Form1, here is how it would look:
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
lstCity.Visible = False
End Sub
End Class
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.