Hi, Dear's here we learn how to implement stock in Accounting Project POS in Visual Studio using C#. Ilyasoft software company provide full project step by step training on our YouTube Channel ilyasoft software company so now subscribe, share and like.
In this tutorial we will cover all the below mention topics:
i) How to Create SalesForms Folder in project.
ii) How to Create NewSalesForm inside SalesForms Folder in out project visual studio?
ii) How to Create NewSalesForm inside SalesForms Folder in out project visual studio?
ii) How to design NewSalesForm(watch complete video)?
iii) How to open New Sale Form inside in Home Form?
So if you want all question answers watch the video, and for source code scroll down.
New Sale Form Design in C# / C-Sharp :
show below in figure: for how to design watch tutorial
using POSAccounts.Forms.SalesForms;
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace POSAccounts { public partial class HomeForm : Form { private FrmNewSale NewSaleForm; public HomeForm() { InitializeComponent();
...
}
private void btnNewSale_Click(object sender, EventArgs e) { PanelButton.Top = btnNewSale.Top; PanelButton.Height = btnNewSale.Height; if (NewSaleForm == null) { NewSaleForm = new FrmNewSale(); NewSaleForm.TopLevel = false; PanelParent.Controls.Add(NewSaleForm); NewSaleForm.Dock = DockStyle.Fill; NewSaleForm.BringToFront(); NewSaleForm.AutoScroll = true; NewSaleForm.Show(); } else { NewSaleForm.Activate(); } } } }
Comments
Post a Comment