Help | Site Map
Connecting Tech Pros Worldwide
Reply
 
LinkBack Thread Tools
  #1  
Old August 28th, 2008, 06:40 PM
Newbie
 
Join Date: Jul 2008
Posts: 20
Default from listbox to textbox

Hi every one can any one tel me how to get some thing from a listbox to a textbox by double click using visual basic 2008 i have already i databasse fealed many thanks
Reply
  #2  
Old August 28th, 2008, 07:17 PM
kadghar's Avatar
Expert
 
Join Date: Apr 2007
Location: Mexico City
Age: 25
Posts: 1,084
Default

i think that something like this in the Double Click event:

Expand|Select|Wrap|Line Numbers
  1. textbox1.text = listbox1.text (or caption, or whatever VB08 uses)
HTH
Reply
  #3  
Old August 28th, 2008, 10:18 PM
Newbie
 
Join Date: Jul 2008
Posts: 20
Default

first i thank you for you're reply it actuly does work but what is happenning now is that it alows only one text at a time please advise
thanks
Reply
  #4  
Old August 29th, 2008, 07:58 AM
QVeen72's Avatar
Moderator
 
Join Date: Oct 2006
Location: Bangalore
Posts: 1,292
Default

Hi,

Try this :

Expand|Select|Wrap|Line Numbers
  1. TextBox1.Text = TextBox1.Text &  "  " & ListBox1.SelectedItem
  2.  
Increase Physical width of Textbox so that all the text is visible..
you can also set Textbox's property MultiLine =True


Regards
Veena
Reply
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles