#Region " Código generado por el Diseñador de Windows Forms "
Public Sub New()
MyBase.New()
'El Diseñador de Windows Forms requiere esta llamada.
InitializeComponent()
'Agregar cualquier inicialización después de la llamada a InitializeComponent()
End Sub
'Form reemplaza a Dispose para limpiar la lista de componentes.
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
If disposing Then
If Not (components Is Nothing) Then
components.Dispose()
End If
End If
MyBase.Dispose(disposing)
End Sub
'Requerido por el Diseñador de Windows Forms
Private components As System.ComponentModel.IContainer
'NOTA: el Diseñador de Windows Forms requiere el siguiente procedimiento
'Puede modificarse utilizando el Diseñador de Windows Forms.
'No lo modifique con el editor de código.
Friend WithEvents PictureBox1 As System.Windows.Forms.PictureBox
Friend WithEvents Button1 As System.Windows.Forms.Button
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.PictureBox1 = New System.Windows.Forms.PictureBox
Me.Button1 = New System.Windows.Forms.Button
Me.PictureBox1.SuspendLayout()
Me.SuspendLayout()
'
'PictureBox1
'
Me.PictureBox1.Controls.Add(Me.Button1)
Me.PictureBox1.Location = New System.Drawing.Point(104, 160)
Me.PictureBox1.Name = "PictureBox1"
Me.PictureBox1.Size = New System.Drawing.Size(552, 336)
Me.PictureBox1.TabIndex = 0
Me.PictureBox1.TabStop = False
'
'Button1
'
Me.Button1.Location = New System.Drawing.Point(368, 288)
Me.Button1.Name = "Button1"
Me.Button1.Size = New System.Drawing.Size(72, 16)
Me.Button1.TabIndex = 2
Me.Button1.Text = "Button1"
'
'Form3
'
Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
Me.ClientSize = New System.Drawing.Size(720, 533)
Me.Controls.Add(Me.PictureBox1)
Me.Name = "Form3"
Me.Text = "Form3"
Me.PictureBox1.ResumeLayout(False)
Me.ResumeLayout(False)
End Sub
#End Region
'solo he cambiado:
el boton en tiempo de diseno se crea en el form
pero entre al
#Region " Código generado por el Diseñador de Windows Forms "
y cambie: el contenedor del boton
me.controls.add(me.button1) por
picturebox1.controls.add(me.button1)
y vuelve al disenador y mueve el picture, ahora si es con tenedor jajajjjaaaa
claro es tedioso pero si es contenedor