0

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
2
Contributors
1
Reply
2
Views
5 Years
Discussion Span
Last Post by TechSupportGeek
0

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
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.