bug del scroll en ventas solucionado y scroll en carrito agregado
This commit is contained in:
+4
-3
@@ -61,7 +61,7 @@ namespace compabetov2
|
||||
private void FlowLayoutPanel3_MouseDown(object sender, MouseEventArgs e)
|
||||
{
|
||||
lastPoint = new Point(e.X, e.Y);
|
||||
flowLayoutPanel3.Capture = true;
|
||||
flowLayoutPanel3.Capture = false;
|
||||
}
|
||||
|
||||
private void FlowLayoutPanel3_MouseMove(object sender, MouseEventArgs e)
|
||||
@@ -142,7 +142,7 @@ namespace compabetov2
|
||||
pic.Controls.Add(id);
|
||||
|
||||
Label precio = new Label();
|
||||
precio.Text = "$" + producto.precioCompra.ToString() + " - " + producto.nombre;
|
||||
precio.Text = "$" + producto.precio.ToString() + " - " + producto.nombre;
|
||||
precio.BackColor = Color.FromArgb(82, 82, 82);
|
||||
precio.ForeColor = Color.White;
|
||||
precio.Width = 40;
|
||||
@@ -208,7 +208,7 @@ namespace compabetov2
|
||||
|
||||
flowLayoutPanel3.AutoScrollPosition = new Point(-scrollPosition.X, -scrollPosition.Y); // Restaurar posición de scroll
|
||||
flowLayoutPanel3.MouseMove += FlowLayoutPanel3_MouseMove; // Reactivar el evento MouseMove
|
||||
|
||||
txtbusqueda.Focus();
|
||||
});
|
||||
|
||||
|
||||
@@ -258,6 +258,7 @@ namespace compabetov2
|
||||
|
||||
flowLayoutPanel3.AutoScrollPosition = new Point(-scrollPosition.X, -scrollPosition.Y); // Restaurar posición de scroll
|
||||
flowLayoutPanel3.MouseMove += FlowLayoutPanel3_MouseMove; // Reactivar el evento MouseMove
|
||||
txtbusqueda.Focus();
|
||||
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user