Jump to content
Fórum Script Brasil
  • 0

List


Densyy

Question

4 answers to this question

Recommended Posts

  • 0

Aqui vai a solução pra quem estiver com esse problema

Option Explicit
Private Declare Function SendMessageArray Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Const LB_SETTABSTOPS = &H192

Private Sub Command1_Click()
Dim i As Integer
ReDim lbtab(3) As Long 'for 3 tabs redim LBTab(1 to 3)as long

lbtab(1) = 180
lbtab(2) = 250
lbtab(3) = 300

' Set tab stops, params are Hwnd of list box, number of tabs in array, tab settings array
SendMessageArray List1.hwnd, LB_SETTABSTOPS, 3, lbtab(1)
' Populate listbox with some test data - use vbtab to separate columns
List1.AddItem "Nome" & vbTab & "Valor" & vbTab & "Quantidade" & vbTab & "Descrição"
List1.AddItem "1" & vbTab & "2" & vbTab & "3" & vbTab & "4"
List1.AddItem "1" & vbTab & "2" & vbTab & "3" & vbTab & "4"
'you can have loops here
End Sub

Edited by Densyy
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      152.2k
    • Total Posts
      652k
×
×
  • Create New...