If you are using Visual Studio, you could drag a TextBow in a Forms application. See in the generated files how VS does it and act accordingly.
ddanbe
Industrious Poster
4,293 posts since Oct 2008
Reputation Points: 2,121
Solved Threads: 723
Skill Endorsements: 26
Do I understand you well, do you want to have some sort of "excel-like" sheet wich fetches data from a database after pushing an execute button? Please explain a bit more.
ddanbe
Industrious Poster
4,293 posts since Oct 2008
Reputation Points: 2,121
Solved Threads: 723
Skill Endorsements: 26
Use a DataGridView object for that. Example
A DataGridView is rather "heavy" in the beginning to get a grasp on(I was for me!) But in the end it pays off. Success!
ddanbe
Industrious Poster
4,293 posts since Oct 2008
Reputation Points: 2,121
Solved Threads: 723
Skill Endorsements: 26
In the example given the DatgridView is constructed dynamically. Or are you only allowed to use TextBoxes and ComboBoxes?
ddanbe
Industrious Poster
4,293 posts since Oct 2008
Reputation Points: 2,121
Solved Threads: 723
Skill Endorsements: 26
You could dynamically create an array of TextBox objects.
It is for example often done to create a sudoku puzzle etc.
ddanbe
Industrious Poster
4,293 posts since Oct 2008
Reputation Points: 2,121
Solved Threads: 723
Skill Endorsements: 26