high light the name of the file in a listbox

high light the name of the file in a listbox

Anonymous
Not applicable
236 Views
3 Replies
Message 1 of 4

high light the name of the file in a listbox

Anonymous
Not applicable
In a listbox in a form consist of name of the files , what should I do so
when I click on each file, the file name become high lighted ?

Thanks in advance.
0 Likes
237 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
There is nothing to do, file name in the listbox should be highlighted if
you clicked it (if it is standard listbox).

"A-Design" wrote in message
news:4934084@discussion.autodesk.com...
In a listbox in a form consist of name of the files , what should I do so
when I click on each file, the file name become high lighted ?

Thanks in advance.
0 Likes
Message 3 of 4

Anonymous
Not applicable
Make sure you set the HideSelection property of the ListView to False. In addition, you might want to call the EnsureVisible method of the SelectedItem object, so it would be visible (the control will scroll up or down). Hope it helps.
0 Likes
Message 4 of 4

Anonymous
Not applicable
John,

Thanks for reply,
I have added " ListBox1.Hide = False " to my codes but it gives me "
Compiler error: Method or data member not found ".
but the " Selected " ,I don't know how to add that to my codes.
could you please give me some comments?

Thanks.
A-Design


wrote in message news:4934431@discussion.autodesk.com...
Make sure you set the HideSelection property of the ListView to False. In
addition, you might want to call the EnsureVisible method of the
SelectedItem object, so it would be visible (the control will scroll up or
down). Hope it helps.
0 Likes