Hi i want to add more text field when pressing a button.
because i making a form which belongs to "Saling products" but obvouseley any customer can purchase one product and also can purchase many products so how is it possible to put more fields when click button add fields..
or any one have good way to make "Salling product" form?
Regards...
Farhad Idrees
Farhad.idrees
1
Junior Poster in Training
Recommended Answers
Jump to PostHi,
the way i would do it is that i would use either a separate control for the name, qty, price and total price, and every time the button is clicked a new control would be added to the form; at the end you just count the number of …
Jump to PostUse TableLayoutPanel control.
private void Form1_Load(object sender, EventArgs e) { TableLayoutPanel tp = new TableLayoutPanel(); tp.AutoScroll = true; tp.ColumnCount = 2; tp.RowStyles.Add(new RowStyle(SizeType.AutoSize)); tp.ColumnStyles.Add(new ColumnStyle(SizeType.AutoSize )); tp.ColumnStyles.Add(new ColumnStyle(SizeType.AutoSize )); tp.ColumnStyles.Add(new ColumnStyle(SizeType.AutoSize )); TextBox tx1 = new TextBox(); TextBox tx2 = new TextBox(); Button bt1 = new Button() …
All 7 Replies
ddanbe
2,724
Professional Procrastinator
Featured Poster
williamrojas78
11
Junior Poster
kvprajapati
1,826
Posting Genius
Team Colleague
Farhad.idrees
1
Junior Poster in Training
Farhad.idrees
1
Junior Poster in Training
Farhad.idrees
1
Junior Poster in Training
Munnazz
0
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.