I want add Textboxs in windows form application in user specified number [closed]

StackOverflow https://stackoverflow.com/questions/22678234

  •  22-06-2023
  •  | 
  •  

문제

I want add Textboxs in windows form application in user specified number and insert values in the database also..plz help me friends

도움이 되었습니까?

해결책

To add dynamic TextBoxes in windows forms

TextBox[] txtBoxes = new TextBox[userValue];
for (int i = 0; i < txtBoxes.Length; i++) 
{
  var txt = new TextBox();
  txtBoxes[i] = txt;
}

This will initialize the textboxes. Later you can use them to get the input.

Inserting in databases is not a single line answer. At least not before you learn how to work with databases.

So its better you go through this link

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top