Guest User

Untitled

a guest
Jun 23rd, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. Public Function ListView_AddProgressBar(ByRef pListView As System.Windows.Forms.ListView, ByVal ListViewItemIndex As Integer, ByVal ColumnIndex As Integer) As System.Windows.Forms.ProgressBar
  2. Dim r As Rectangle
  3. Dim pb As New System.Windows.Forms.ProgressBar
  4.  
  5. r = pListView.Items(ListViewItemIndex).Bounds()
  6. r.Width = pListView.Columns(ColumnIndex).Width
  7. If ColumnIndex > 0 Then
  8. r.X = r.X + pListView.Columns(ColumnIndex - 1).Width
  9. End If
  10. pb.Parent = pListView
  11. pb.SetBounds(r.X, r.Y, r.Width, r.Height)
  12. pb.Visible = True
  13.  
  14. Return pb
  15. End Function
Add Comment
Please, Sign In to add comment