How do I create a listbox with scroll bar in Visual Basic?
|
01-08-2013, 12:53 AM
Post: #2
|
|||
|
|||
A list box will automatically add a scroll Bar when the list becomes longer than the length of the list box.
However, you can place a scroll bar on the list box at the design time by setting the ScrollAlwaysVisible property to true. I must guess that by 'has 2 sides', you mean a split screen. You must indicate what you are placing the people's data into. The best I can determine is you must do the following; 1 Store the peoples information in a text file. 2. Place the text file lines in an array by using the File.ReadAllLines method., when you click on a person's name in the list box 3. Iterate this array of lines, and create another array of each line with the Str.Split method, using a white space for a delimiter. The person's name should be the first item in the text file. As such, you would look at the first array element of the Str.Split array for a match of the name clicked in the list box. 4. When a match for the selected name is found, display the person's data in the 'other side' of the form. TexMav Ads |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
How do I create a listbox with scroll bar in Visual Basic? - Pia Joyce Escasinas - 01-08-2013, 12:45 AM
[] - texasmaverick - 01-08-2013 12:53 AM
|
User(s) browsing this thread: 1 Guest(s)