listview problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Matt Michael

    #1

    listview problem

    Hi,

    I'm having a problem working with a listview in an application I'm writing.
    Currently, whenever the selectedindex changed event fires, it loads up a
    htmledit control, and other labels on the form, with the current information
    associated with the listview item. Whenever I click on each item, it works
    fine, but it seems that whenever I use the up/down arrows(importan t) to
    scroll through the list, it loses focus, and goes to the htmledit control
    whenever the index changes. Is there any way to make it so the listview
    does not lose focus.. allowing the up and down arrows to work, all the while
    refreshing the data on the form? Thanks in advance

    -Matt

    Sample code:

    Private Sub lvMessages_Sele ctedIndexChange d(ByVal sender As System.Object,
    ByVal e As System.EventArg s) Handles lvMessages.Sele ctedIndexChange d

    If lvMessages.Sele ctedItems.Count > 0 Then
    ....get message..

    If msg.Tables("Mes sage").Rows.Cou nt > 0 Then
    ...display fields
    ...enable appropriate buttons
    deMessage.LoadD ocument(body)
    End If

    Else
    ....empty message fields..
    ...disable buttons
    End If
    End Sub


  • jisikoff

    #2
    Re: listview problem


    You didnt happen to find a solution to this arrow key listview htmledi
    problem did you?

    if you did can you drop me a mail at jisikoff@yahoo. com

    thanks

    jm

    --
    jisikoffPosted from http://www.pcreview.co.uk/ newsgroup acces

    Comment

    Working...