2
Answers

Creating the control in runtime

Photo of manohar vakkala

manohar vakkala

15y
3.2k
1
How to read the control value after creating the control at runtime.

Example:- 
Step 1:- 10 Textbox controls is created at runtime.
Step 2:- user enters the details in the textbox.
Step 3:- User clicks on the button control to insert these textbox values then thease values must be inserted into the database.

Here comes the problem, How can I read these textbox control data at runtime. I dont know the controlId & etc..,


Please give me solution & explanation for the problem.......

Answers (2)

0
Photo of paul daniel
NA 466 0 15y
0
Photo of Sam Hobbs
NA 28.7k 1.3m 15y

Attachment 77169.zip


Please get a book about C# and .Net and Windows Forms. This question would be answered in every good book such as that. There are abundant examples available in many places. In the left side of this window, do you see "Our recommended articles"? Did you read the one "Adding Controls to Windows Forms at Runtime"?
 
The attached project is a sample of what you are asking for.