Click here to Skip to main content
16,006,001 members
Home / Discussions / C#
   

C#

 
AnswerRe: how use it Pin
Paul Conrad30-Sep-07 13:09
professionalPaul Conrad30-Sep-07 13:09 
Questionwho is better Pin
hcapri30-Sep-07 7:12
hcapri30-Sep-07 7:12 
AnswerRe: who is better Pin
ESTAN30-Sep-07 10:21
ESTAN30-Sep-07 10:21 
Questionword Pin
hcapri30-Sep-07 7:08
hcapri30-Sep-07 7:08 
AnswerRe: word Pin
ESTAN30-Sep-07 10:24
ESTAN30-Sep-07 10:24 
AnswerRe: word Pin
Paul Conrad30-Sep-07 13:08
professionalPaul Conrad30-Sep-07 13:08 
Questionsave Pin
Assaf8230-Sep-07 4:43
Assaf8230-Sep-07 4:43 
AnswerRe: save Pin
Lutosław30-Sep-07 5:38
Lutosław30-Sep-07 5:38 
Do you mean that u have a form with few TextBoxes and you want to save values in these TextBoxes in an array?
Try this then:
string[] arr = new string[numberOfTextBoxes];
arr[0] = textBox1.Text;
arr[1] = textBox2.Text;
//etc.

or, if you load TextBoxes dynamically:
List%lt;string> lst = new List<string>();
foreach(Control c in this.Controls)
{
  if (c is TextBox)
      lst.Add(c.Text);
}
string[] arr = lst.ToArray();


Greetings - Gajatko

Portable.NET is part of DotGNU, a project to build a complete Free Software replacement for .NET - a system that truly belongs to the developers.

GeneralRe: save Pin
Assaf8230-Sep-07 9:23
Assaf8230-Sep-07 9:23 
AnswerRe: save Pin
ESTAN30-Sep-07 10:55
ESTAN30-Sep-07 10:55 
GeneralRe: save Pin
Assaf8230-Sep-07 11:12
Assaf8230-Sep-07 11:12 
GeneralRe: save Pin
lmoelleb30-Sep-07 21:39
lmoelleb30-Sep-07 21:39 
GeneralRe: save Pin
ESTAN30-Sep-07 22:28
ESTAN30-Sep-07 22:28 
GeneralRe: save Pin
lmoelleb30-Sep-07 23:13
lmoelleb30-Sep-07 23:13 
QuestionDatepicker dropdown Pin
-spy-30-Sep-07 3:59
-spy-30-Sep-07 3:59 
AnswerRe: Datepicker dropdown Pin
Scott Dorman30-Sep-07 4:30
professionalScott Dorman30-Sep-07 4:30 
QuestionI've got confused by overriding OnDrawItem in DataGridViewComboBoxEditingControl, somebody please help me~! Pin
quakertistar30-Sep-07 3:47
quakertistar30-Sep-07 3:47 
AnswerRe: I've got confused by overriding OnDrawItem in DataGridViewComboBoxEditingControl, somebody please help me~! Pin
Scott Dorman30-Sep-07 4:32
professionalScott Dorman30-Sep-07 4:32 
GeneralRe: I've got confused by overriding OnDrawItem in DataGridViewComboBoxEditingControl, somebody please help me~! Pin
quakertistar30-Sep-07 5:03
quakertistar30-Sep-07 5:03 
GeneralRe: I've got confused by overriding OnDrawItem in DataGridViewComboBoxEditingControl, somebody please help me~! Pin
Scott Dorman30-Sep-07 5:53
professionalScott Dorman30-Sep-07 5:53 
QuestionArrow keys Pin
MasterSharp30-Sep-07 3:40
MasterSharp30-Sep-07 3:40 
AnswerRe: Arrow keys Pin
Luc Pattyn30-Sep-07 4:02
sitebuilderLuc Pattyn30-Sep-07 4:02 
GeneralRe: Arrow keys Pin
MasterSharp30-Sep-07 4:10
MasterSharp30-Sep-07 4:10 
GeneralRe: Arrow keys Pin
Luc Pattyn30-Sep-07 5:00
sitebuilderLuc Pattyn30-Sep-07 5:00 
GeneralRe: Arrow keys Pin
MasterSharp30-Sep-07 5:46
MasterSharp30-Sep-07 5:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.