rulec444

rulec444

  • NA
  • 81
  • 0

How to use listbox in windows form

Jun 22 2004 10:23 PM
The strangest thing is happening in my application and I can't figure out why. I have a ListBox that when I run my application it is not displaying on my form - not due to the location or because it wasn't added to the form, but due to the visibility property When I stepped through the code, for some reason the visible property is set to false. I did a complete find/search on the control and nowhere in the code, even the designer generated code is it ever set to Visible = false. I even added this code: if(lbxState01.Visible == false) { lbxState01.Visible = true; } and it still remained as Visible = false all the way through this statement. As a last resort, I closed the application, shut down VS.NET and rebooted, when I ran the application again, it did the same thing. Has anyone else ever seen this? Thanks.

Answers (4)