Click here to Skip to main content
15,912,205 members
Home / Discussions / C#
   

C#

 
GeneralRe: Check for Numeric value Pin
originSH4-Sep-07 3:24
originSH4-Sep-07 3:24 
GeneralRe: Check for Numeric value Pin
Gopal.S4-Sep-07 4:01
Gopal.S4-Sep-07 4:01 
QuestionTry to define string in Resources.resx with \n but ,NET see this as \\n Pin
Yanshof4-Sep-07 0:45
Yanshof4-Sep-07 0:45 
QuestionDropdown column in Datagrid Pin
André Stroebel4-Sep-07 0:41
André Stroebel4-Sep-07 0:41 
AnswerRe: Dropdown column in Datagrid Pin
André Stroebel4-Sep-07 2:56
André Stroebel4-Sep-07 2:56 
QuestionCancel from Custom Installer Pin
vSoares4-Sep-07 0:30
professionalvSoares4-Sep-07 0:30 
QuestionHow to copy all listbox items to cipboard? Pin
Abelinda814-Sep-07 0:26
Abelinda814-Sep-07 0:26 
AnswerRe: How to copy all listbox items to cipboard? Pin
Colin Angus Mackay4-Sep-07 1:49
Colin Angus Mackay4-Sep-07 1:49 
Abelinda81 wrote:
What I am doing wrong here?


For a start, do you really want to select everything in the list box also? (You're thinking about how a user might do this, not how to do it programmatically)

Also, what do you actually want to appear in the clipboard? The list box has no idea about the clipboard so you have to format the data for it.

What you might want to do is create a StringBuilder and build up a list of the items with an Environment.NewLine at the end of each item, rather than selecting all the items in the list box.


Upcoming FREE developer events:
* Glasgow: Agile in the Enterprise Vs. ISVs, db4o: An Embeddable Database Engine for Object-Oriented Environments, Mock Objects, SQL Server CLR Integration, Reporting Services ...

My website

GeneralRe: How to copy all listbox items to cipboard? Pin
Abelinda814-Sep-07 4:36
Abelinda814-Sep-07 4:36 
GeneralRe: How to copy all listbox items to cipboard? Pin
Colin Angus Mackay4-Sep-07 5:03
Colin Angus Mackay4-Sep-07 5:03 
Questionremoving event handlers Pin
JoZ CaVaLLo4-Sep-07 0:09
JoZ CaVaLLo4-Sep-07 0:09 
AnswerRe: removing event handlers Pin
originSH4-Sep-07 0:11
originSH4-Sep-07 0:11 
QuestionActive Directory Pin
dorine824-Sep-07 0:01
dorine824-Sep-07 0:01 
AnswerRe: Active Directory Pin
Dave Kreskowiak4-Sep-07 5:39
mveDave Kreskowiak4-Sep-07 5:39 
QuestionI'm going crazy! C# operators Pin
Eli Nurman3-Sep-07 23:48
Eli Nurman3-Sep-07 23:48 
AnswerRe: I'm going crazy! C# operators Pin
Muammar©3-Sep-07 23:57
Muammar©3-Sep-07 23:57 
GeneralRe: I'm going crazy! C# operators Pin
originSH4-Sep-07 0:01
originSH4-Sep-07 0:01 
GeneralRe: I'm going crazy! C# operators Pin
Muammar©4-Sep-07 1:22
Muammar©4-Sep-07 1:22 
GeneralRe: I'm going crazy! C# operators Pin
originSH4-Sep-07 1:41
originSH4-Sep-07 1:41 
GeneralRe: I'm going crazy! C# operators Pin
originSH4-Sep-07 3:18
originSH4-Sep-07 3:18 
AnswerRe: I'm going crazy! C# operators Pin
originSH3-Sep-07 23:59
originSH3-Sep-07 23:59 
GeneralRe: I'm going crazy! C# operators Pin
Eli Nurman4-Sep-07 0:10
Eli Nurman4-Sep-07 0:10 
GeneralRe: I'm going crazy! C# operators Pin
originSH4-Sep-07 0:18
originSH4-Sep-07 0:18 
GeneralRe: I'm going crazy! C# operators Pin
Muammar©4-Sep-07 1:27
Muammar©4-Sep-07 1:27 
GeneralRe: I'm going crazy! C# operators Pin
originSH4-Sep-07 1:40
originSH4-Sep-07 1:40 

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.