Private Declare Function SendMessage Lib "user32 " Alias "SendMessageA" (ByVal hwnd As Long, _ ByVal wMsg As Long, _ ByVal wParam As Long, _ lParam As Any) As Long Private Const LB_SETHORIZONTALEXTENT = &H194-----------------------
private void btnadd_Click(object sender, EventArgs e) { int fileCount = 0; foreach (Control c in this.flowLayoutPanel1.Controls) { if (c is TextBox) { +