|
Изменения положения строки в listbox
|
|||
---|---|---|---|
#18+
Господа, подскажите pls, как по нажатию кнопки можно изменять положение выделенной строки в listbox(поднимать/опускать)? ... |
|||
:
Нравится:
Не нравится:
|
|||
27.08.2003, 17:46 |
|
Изменения положения строки в listbox
|
|||
---|---|---|---|
#18+
Спасибо, разобрался Dim SelItem As Object Dim UpItem As Object Dim SelIndex As Integer Dim UpIndex As Integer SelIndex = Me.ListBox1.SelectedIndex If SelIndex > 0 Then UpIndex = SelIndex - 1 SelItem = Me.ListBox1.Items(SelIndex) UpItem = Me.ListBox1.Items(UpIndex) Else Exit Sub End If Me.ListBox1.Items.RemoveAt(SelIndex) Me.ListBox1.Items.RemoveAt(UpIndex) Me.ListBox1.Items.Insert(UpIndex, SelItem) Me.ListBox1.Items.Insert(SelIndex, UpItem) Me.ListBox1.SelectedIndex = UpIndex ... |
|||
:
Нравится:
Не нравится:
|
|||
27.08.2003, 18:11 |
|
|
start [/forum/topic.php?fid=20&gotonew=1&tid=1440024]: |
0ms |
get settings: |
11ms |
get forum list: |
12ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
35ms |
get topic data: |
8ms |
get first new msg: |
6ms |
get forum data: |
3ms |
get page messages: |
38ms |
get tp. blocked users: |
1ms |
others: | 12ms |
total: | 132ms |
0 / 0 |