Jump to content

Recommended Posts

Posted (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 by apocsantos
geshi

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.