ferreira12 Posted January 2, 2013 at 02:25 PM Report #489255 Posted January 2, 2013 at 02:25 PM Boas... Eu gostaria de colocar na minha listview um checkBoxes, mas se eu usar o código abaixo coloca-me só na segunda coluna, e eu gostaria de colocar na 3ª coluna como faria? LV.CheckBoxes = True
jlpcalado Posted January 3, 2013 at 10:56 PM Report #489446 Posted January 3, 2013 at 10:56 PM (edited) Experimenta e adapta o código. Dim myCheckFont As New System.Drawing.Font("Wingdings", 14, FontStyle.Regular) ListView1.Columns.Add("Id") ListView1.Columns.Add("Teste") ListView1.Columns.Add("Check") For i = 0 To 5 Dim it As New ListViewItem it.Text = i it.UseItemStyleForSubItems = False it.SubItems.Add("Teste" + i.ToString) If i Mod 2 = 0 Then it.SubItems.Add(Chr(168)) Else it.SubItems.Add(Chr(254)) End If it.SubItems(2).Font = myCheckFont it.SubItems(2).ForeColor = Color.Black ListView1.Items.Add(it) Next Edited January 3, 2013 at 11:20 PM by apocsantos geshi
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now