Click here to Skip to main content
15,895,011 members
Home / Discussions / C#
   

C#

 
GeneralRe: method parameters error Pin
Pete O'Hanlon1-May-10 20:57
mvePete O'Hanlon1-May-10 20:57 
GeneralRe: method parameters error Pin
Abhinav S1-May-10 21:19
Abhinav S1-May-10 21:19 
GeneralRe: method parameters error Pin
Pete O'Hanlon1-May-10 22:04
mvePete O'Hanlon1-May-10 22:04 
GeneralRe: method parameters error Pin
Abhinav S2-May-10 1:22
Abhinav S2-May-10 1:22 
GeneralRe: method parameters error Pin
Abdul-Rhman Alsri2-May-10 5:35
Abdul-Rhman Alsri2-May-10 5:35 
GeneralRe: method parameters error Pin
Pete O'Hanlon2-May-10 5:58
mvePete O'Hanlon2-May-10 5:58 
GeneralRe: method parameters error Pin
Abdul-Rhman Alsri2-May-10 6:15
Abdul-Rhman Alsri2-May-10 6:15 
GeneralRe: method parameters error Pin
Pete O'Hanlon2-May-10 7:16
mvePete O'Hanlon2-May-10 7:16 
Well, suppose you wanted to display a list of all of the items in a textbox, you could use:
private void BindZones(List<string> zones)
{
  StringBuilder sb = new StringBuilder();
  foreach (string item in zones)
  {
    sb.AppendFormat("{0}{1}", item, Environment.NewLine);
  }
  TextBox1.Text = sb.ToString();
}
To be honest though - you would be better off displaying this in a ListBox rather than a Textbox.

"WPF has many lovers. It's a veritable porn star!" - Josh Smith

As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.


My blog | My articles | MoXAML PowerToys | Onyx



GeneralRe: method parameters error Pin
Abdul-Rhman Alsri2-May-10 8:35
Abdul-Rhman Alsri2-May-10 8:35 
GeneralRe: method parameters error Pin
Pete O'Hanlon2-May-10 8:49
mvePete O'Hanlon2-May-10 8:49 
GeneralRe: method parameters error Pin
Abdul-Rhman Alsri2-May-10 9:59
Abdul-Rhman Alsri2-May-10 9:59 
GeneralRe: method parameters error Pin
Pete O'Hanlon2-May-10 10:12
mvePete O'Hanlon2-May-10 10:12 
Questionerror in insert 'msman88' Pin
Abdul-Rhman Alsri1-May-10 8:31
Abdul-Rhman Alsri1-May-10 8:31 
AnswerRe: error in insert 'msman88' Pin
Luc Pattyn1-May-10 8:36
sitebuilderLuc Pattyn1-May-10 8:36 
AnswerRe: error in insert 'msman88' Pin
Abhinav S1-May-10 8:36
Abhinav S1-May-10 8:36 
Questionhow to bring Graphic shapes to front of Form Pin
jojoba20111-May-10 4:05
jojoba20111-May-10 4:05 
AnswerRe: how to bring Graphic shapes to front of Form Pin
egenis1-May-10 4:46
egenis1-May-10 4:46 
AnswerRe: how to bring Graphic shapes to front of Form Pin
DaveyM691-May-10 10:26
professionalDaveyM691-May-10 10:26 
QuestionMicrosoft Office dictioanries Pin
LiorY19891-May-10 3:48
LiorY19891-May-10 3:48 
AnswerRe: Microsoft Office dictioanries Pin
Abhinav S1-May-10 6:08
Abhinav S1-May-10 6:08 
QuestionInteroperability Pin
Chiman11-May-10 1:55
Chiman11-May-10 1:55 
AnswerRe: Interoperability Pin
ThatsAlok2-May-10 20:20
ThatsAlok2-May-10 20:20 
Questionhow to change a value over a set period of time Pin
kennyhibs30-Apr-10 22:23
kennyhibs30-Apr-10 22:23 
AnswerRe: how to change a value over a set period of time Pin
OriginalGriff30-Apr-10 22:30
mveOriginalGriff30-Apr-10 22:30 
AnswerRe: how to change a value over a set period of time Pin
Luc Pattyn1-May-10 4:04
sitebuilderLuc Pattyn1-May-10 4:04 

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.