Jump to content

Fixar tamanho mínimo de coluna de uma listview


zephirus
 Share

Recommended Posts

Podes manipular nestes dois eventos:

    Private Sub ListView1_ColumnWidthChanging(ByVal sender As Object, ByVal e As System.Windows.Forms.ColumnWidthChangingEventArgs) Handles ListView1.ColumnWidthChanging

    End Sub
    Private Sub ListView1_ColumnWidthChanged(ByVal sender As Object, ByVal e As System.Windows.Forms.ColumnWidthChangedEventArgs) Handles ListView1.ColumnWidthChanged

    End Sub

O primeiro evento ocurre quando o utilizador esta a alterar o tamanho da coluna e o segundo ocorre no final final da operação..

Podendo ainda no evento ColumnWidthChanging cancelar o evento quando o user tenta fazer o resize.. com o método e.Cancel = True

Compr.

Making the impossible possible and pwing the world on db at a time.

Link to comment
Share on other sites

Podes manipular nestes dois eventos:

    Private Sub ListView1_ColumnWidthChanging(ByVal sender As Object, ByVal e As System.Windows.Forms.ColumnWidthChangingEventArgs) Handles ListView1.ColumnWidthChanging

    End Sub
    Private Sub ListView1_ColumnWidthChanged(ByVal sender As Object, ByVal e As System.Windows.Forms.ColumnWidthChangedEventArgs) Handles ListView1.ColumnWidthChanged

    End Sub

O primeiro evento ocurre quando o utilizador esta a alterar o tamanho da coluna e o segundo ocorre no final final da operação..

Podendo ainda no evento ColumnWidthChanging cancelar o evento quando o user tenta fazer o resize.. com o método e.Cancel = True

Compr.

Obrigado fLaSh_PT. Vou testar.

Link to comment
Share on other sites

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
 Share

×
×
  • 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.