Ask Experts Questions for FREE Help!
 

Free Answers in 3 Easy Steps

Register Now
3 Steps
 


Ask QuestionsprogressAnswer QuestionsprogressBuild ReputationprogressBecome an Expert
 
At Ask Me Help Desk you can ask questions in any topic and have them answered for free by our experts. To ask questions or participate in answering them you must register for a free account. By registering you will be able to:
  • Get free answers from experts in any of our 300+ topics.
  • Accept money for answers that you provide.
  • Communicate privately with other members (PM).
  • See fewer ads.
  Answer this Question    Ask about Visual Basic    Ask about another Subject  
 

Mistery1
Jan 23, 2009, 02:56 AM
Hi there,

I wonder if anyone can help. I have a listbox and a textbox. At runtime i already have a list of items in the listbox. When i double click on these items its needs to appear in the textbox. At the moment i have the code that, when i double click on the item in the listbox ONLY one item is added to the textbox. I need to know how to autosize the textbox so that, when i click on many items in the listbox, it should appear in the textbox one below the other.

more2come3
Jan 23, 2009, 04:32 AM
make sure to set the wordwrap property of the textbox to true

on the double click event of the listbox add this code...

textbox1.text = textbox1.text + vbcrlf + listbox1.list(listbox1.listindex)

hope this would help you..

Mistery1
Jan 23, 2009, 04:47 AM
Hi there,

Thanks for helping out, but it does not work. It does not even give me errors

Mistery1
Jan 23, 2009, 07:12 AM
Hi there,

I have the answer. Thanks alot for you help.