By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,952 Members | 1,674 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,952 IT Pros & Developers. It's quick & easy.

multiple lines

P: 10
hi

i want to select more than two files from a directory and display them with their complete path discription(path for two files) inside a text box.. how can i do it... i tried setting the multiproperty of the text but its nottaking the text what could i do...

kindly help me...

thanks for whatever help i get..

thanks
sunil
Apr 24 '07 #1
Share this Question
Share on Google+
1 Reply


Expert 5K+
P: 8,434
i want to select more than two files from a directory and display them with their complete path discription(path for two files) inside a text box.. how can i do it... i tried setting the multiproperty of the text but its nottaking the text what could i do...
Which is giving you trouble - getting the filenames, or putting them in the textbox?

At a guess, you are overwriting the value in the textbox with each value in turn, rather than adding them onto the end of what is already there. I'll show you what I mean. Let's assume you have a textbox called Text1.
Expand|Select|Wrap|Line Numbers
  1. ' This code will place two different values into the textbox.
  2. ' The second value will replace the first.
  3. Text1.Text = "File1.Txt"
  4. Text1.Text = "File2.Txt"
  5.  
After executing this, the value in the textbox will be a single line...
File2.Txt
Expand|Select|Wrap|Line Numbers
  1. ' This code will place two values into the textbox.
  2. ' The second value will be appended to the first.
  3. Text1.Text = "File1.Txt"
  4. Text1.Text = Text1.Text & "File2.Txt"
  5.  
After executing this, assuing the MultiLine property was True, the value in the textbox will be two lines...
File1.Txt
File2.Txt
Apr 25 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.