Click here to Skip to main content
15,891,136 members
Home / Discussions / C#
   

C#

 
GeneralRe: Check for Numeric value Pin
Gopal.S4-Sep-07 2:59
Gopal.S4-Sep-07 2:59 
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 
Hello everybody,

I'm new here and beginner in C#. I have a question for you,please.
I have a listbox,and I want to copy all items to clipboard.

private void btnCopy_Click(object sender, EventArgs e)
{
for (int i = 0; i < lstAll.Items.Count; i++)
{
lstAll.SetSelected(i, true);
}
Clipboard.SetDataObject(lstAll.SelectedItems.ToString(), true);
}

this is the output: System.Windows.Forms.ListBox+SelectedObjectCollection
What I am doing wrong here?Sigh | :sigh:
Please help!!!
AnswerRe: How to copy all listbox items to cipboard? Pin
Colin Angus Mackay4-Sep-07 1:49
Colin Angus Mackay4-Sep-07 1:49 
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 

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.