crear etiquetas de vacío con Name = lblEmpty y AutoSize = False. Pon este control primero en la lista de controles en FlowLayoutPanel1, luego agrega el código a continuación.
Ejemplo: Suponiendo tres etiquetas existentes en FlowLayoutPanel1, el resultado debería ser lblEmpty, LabelExisting1 y LabelExisting2, en ese orden.
Dim MarginLabelEmpty As Integer = ((FlowLayoutPanel1.Width - (LabelExisting1.Width + LabelExisting2.Width))/2)
lblEmpty.Width = MarginLabelEmpty
Resolvé mi problema al crear este código.
en su caso con controles de botón, crear nuevas etiquetas con .Texto = "" (vacío) y poner a cada uno al comienzo de cada botón, etiquetas de nombres de la siguiente manera: lblEmpty1, lblEmpty2, lblEmpty3, lblEmpty4.
a continuación, añadir el siguiente código:
Dim MarginLeftbtnOptAll As Integer = ((FlowLayoutPanel1.Width - btnOpt1.Width)/2)
lblEmpty1.AutoSize = False
lblEmpty1.Width = MarginLeftbtnOptAll
lblEmpty2.AutoSize = False
lblEmpty2.Width = MarginLeftbtnOptAll
lblEmpty3.AutoSize = False
lblEmpty3.Width = MarginLeftbtnOptAll
lblEmpty4.AutoSize = False
lblEmpty4.Width = MarginLeftbtnOptAll
Este botón central, el aumento de la anchura de la etiqueta vacía de acuerdo con la anchura de la FlowLayoutPanel1
'FLowLayout' no está diseñado para eso. – SLaks
@SLaks ¿me pueden recomendar una alternativa? – David
intenta usar el panel – Likurg