Gracias Aquaventus!
La verdad me siento un poco tonto, hehe…
Comparando códigos (trabajaba en VB, pero el C se parece) me di cuenta que lo que pasa es lo siguiente…
Si tu pides el ancho del botón antes de “invocarlo” te dará 100 o 75, pero si lo pides una vez ya invocado te da el ancho verdadero…
Ejemplo:
Código vb:
Ver originalDim texto As New Label
Dim boton As New Button
boton.AutoSize = True
boton.Location = New Point(30, 30)
boton.Text = "reu9tfdu34sfd 384fs 38940fsy 32984e 23849fsd jhd289 fdh2s39"
texto.Text = boton.Width
texto.Location = New Point(70, 70)
Me.Controls.Add(boton)
Me.Controls.Add(texto)
El texto te sale "75"
Pero si lo invoco antes de "
texto.Text = boton.Width"
Código vb:
Ver originalDim texto As New Label
Dim boton As New Button
boton.AutoSize = True
boton.Location = New Point(30, 30)
boton.Text = "reu9tfdu34sfd 384fs 38940fsy 32984e 23849fsd jhd289 fdh2s39"
Me.Controls.Add(boton) ' se invoca el boton!
texto.Text = boton.Width
texto.Location = New Point(70, 70)
Me.Controls.Add(texto)
Me sale "319".
Muchas gracias!