Listview: 3 columns to be linked with combobox, others with textbox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • samvb
    New Member
    • Oct 2006
    • 228

    Listview: 3 columns to be linked with combobox, others with textbox

    Hi,

    i just have the picture of how i want it to look like and behave in my head but no idea how to implement it.

    I have a listview control that have 6 columns. i want the first 3 columns to be edited for separate combobox. the combos are populated and user just have to select. while the others from individual/3 textboxes.

    so far, i can edit each row with a single textbox or combobox.

    what i am thinking is...when a row is clicked [where fullrowselect=t rue], the comboboxes be placed on the rows of each column they belong.

    i hope i am clear. poor english again...


    any idea?
  • Guido Geurs
    Recognized Expert Contributor
    • Oct 2009
    • 767

    #2
    Place the lists and textboxes in a frame and use the Mouse-Up or Mouse-Down to get the X and Y coordinates for placing the frame like:
    (See also attachment)

    Code:
    Private Sub ComClose_Click()
       Frame1.Visible = False
    End Sub
    
    Private Sub MSFlexGrid1_MouseUp(Button As Integer, Shift As Integer, x As Single, y As Single)
       With Frame1
          .Top = MSFlexGrid1.Top + y + 120
          .Visible = True
       End With
    End Sub
    Attached Files

    Comment

    • samvb
      New Member
      • Oct 2006
      • 228

      #3
      brilliant! Thank you so much!

      Comment

      Working...