diff --git a/.vs/compabetoOG/v17/.wsuo b/.vs/compabetoOG/v17/.wsuo index 9cd62d0..0c5db0d 100644 Binary files a/.vs/compabetoOG/v17/.wsuo and b/.vs/compabetoOG/v17/.wsuo differ diff --git a/Ventas/vender.Designer.cs b/Ventas/vender.Designer.cs index a2ae8f2..a4ccdbf 100644 --- a/Ventas/vender.Designer.cs +++ b/Ventas/vender.Designer.cs @@ -312,7 +312,7 @@ this.btnFiar.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F); this.btnFiar.ForeColor = System.Drawing.Color.Transparent; this.btnFiar.Location = new System.Drawing.Point(1213, 210); - this.btnFiar.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.btnFiar.Margin = new System.Windows.Forms.Padding(4); this.btnFiar.Name = "btnFiar"; this.btnFiar.Size = new System.Drawing.Size(151, 54); this.btnFiar.TabIndex = 19; diff --git a/Ventas/vender.cs b/Ventas/vender.cs index 2f45104..90fa72f 100644 --- a/Ventas/vender.cs +++ b/Ventas/vender.cs @@ -26,6 +26,7 @@ namespace compabetov2 { private int numeroPagina = 1; // Variable para rastrear el número de página actual private Point lastPoint; + private Point lastAutoScrollPosition; private List productos; public decimal total = 0; private LoginModel loginPrincipal; @@ -40,6 +41,7 @@ namespace compabetov2 getData(); llenarLayout(); llenarComBox(); + InitializeFlowLayout(); this.loginPrincipal = loginPrincipal; } @@ -57,7 +59,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) @@ -76,9 +78,9 @@ namespace compabetov2 private void FlowLayoutPanel3_MouseUp(object sender, MouseEventArgs e) { - + lastPoint = new Point(e.X, e.Y); - flowLayoutPanel3.Capture = true; + flowLayoutPanel3.Capture =false; } diff --git a/bin/Debug/compabetov2.exe b/bin/Debug/compabetov2.exe index 21034e9..88751ea 100644 Binary files a/bin/Debug/compabetov2.exe and b/bin/Debug/compabetov2.exe differ diff --git a/bin/Debug/compabetov2.pdb b/bin/Debug/compabetov2.pdb index 331df24..c977b04 100644 Binary files a/bin/Debug/compabetov2.pdb and b/bin/Debug/compabetov2.pdb differ diff --git a/bin/Debug/data.db b/bin/Debug/data.db index 05ef35b..96225d4 100644 Binary files a/bin/Debug/data.db and b/bin/Debug/data.db differ diff --git a/obj/Debug/compabetov2.csproj.AssemblyReference.cache b/obj/Debug/compabetov2.csproj.AssemblyReference.cache index 59b32c9..e589ac5 100644 Binary files a/obj/Debug/compabetov2.csproj.AssemblyReference.cache and b/obj/Debug/compabetov2.csproj.AssemblyReference.cache differ diff --git a/obj/Debug/compabetov2.csproj.GenerateResource.cache b/obj/Debug/compabetov2.csproj.GenerateResource.cache index 3da8f48..3ff9e71 100644 Binary files a/obj/Debug/compabetov2.csproj.GenerateResource.cache and b/obj/Debug/compabetov2.csproj.GenerateResource.cache differ diff --git a/obj/Debug/compabetov2.exe b/obj/Debug/compabetov2.exe index 21034e9..88751ea 100644 Binary files a/obj/Debug/compabetov2.exe and b/obj/Debug/compabetov2.exe differ diff --git a/obj/Debug/compabetov2.pdb b/obj/Debug/compabetov2.pdb index 331df24..c977b04 100644 Binary files a/obj/Debug/compabetov2.pdb and b/obj/Debug/compabetov2.pdb differ