Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 5th, 2006, 6:29 AM   #1
guess
Programmer
 
Join Date: Feb 2006
Posts: 40
Rep Power: 0 guess is on a distinguished road
C# listbox

I want to select all or one by one of the list elements from a list box and COPY them. If anybody helps,I would be glad...
guess is offline   Reply With Quote
Old Apr 5th, 2006, 6:47 AM   #2
guess
Programmer
 
Join Date: Feb 2006
Posts: 40
Rep Power: 0 guess is on a distinguished road
Im programming in miscorost visual C# and language is C#
guess is offline   Reply With Quote
Old Apr 5th, 2006, 6:53 AM   #3
tayspen
Hobbyist Programmer
 
Join Date: Sep 2005
Location: A House...
Posts: 191
Rep Power: 4 tayspen is on a distinguished road
Copy them where? Do what after you copy them? You need to give more info.
tayspen is offline   Reply With Quote
Old Apr 5th, 2006, 6:55 AM   #4
guess
Programmer
 
Join Date: Feb 2006
Posts: 40
Rep Power: 0 guess is on a distinguished road
I just want to copy it with my mouse or ctrl+c and then paste it to a text file outside manually.
guess is offline   Reply With Quote
Old Apr 6th, 2006, 11:32 AM   #5
hoffmandirt
Hobbyist Programmer
 
hoffmandirt's Avatar
 
Join Date: Jul 2005
Location: PA
Posts: 125
Rep Power: 4 hoffmandirt is on a distinguished road
Send a message via AIM to hoffmandirt
handle the selected index changed event and add the item text to the clipboard.

Clipboard.SetDataObject(listbox1.SelectedItem.Text, true);

This is just an idea off the top of my head. This might be a nuisance for the web side
hoffmandirt is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 2:00 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC