Click here to Skip to main content
15,893,644 members
Home / Discussions / C#
   

C#

 
GeneralRe: Save file Dialog Pin
pmarfleet28-Mar-08 23:17
pmarfleet28-Mar-08 23:17 
Generalprinting selected pages... Pin
Xmen Real 28-Mar-08 21:31
professional Xmen Real 28-Mar-08 21:31 
GeneralRe: printing selected pages... Pin
Luc Pattyn28-Mar-08 23:21
sitebuilderLuc Pattyn28-Mar-08 23:21 
GeneralRe: printing selected pages... Pin
Xmen Real 29-Mar-08 2:14
professional Xmen Real 29-Mar-08 2:14 
Generalwindows app query Pin
manish.singhal28-Mar-08 20:28
manish.singhal28-Mar-08 20:28 
GeneralRe: windows app query Pin
Abhijit Jana28-Mar-08 20:36
professionalAbhijit Jana28-Mar-08 20:36 
GeneralRe: windows app query Pin
manish.singhal28-Mar-08 23:09
manish.singhal28-Mar-08 23:09 
GeneralArray null on Cloning Pin
N a v a n e e t h28-Mar-08 20:03
N a v a n e e t h28-Mar-08 20:03 
I am trying to copy a listview's items into an array and make a new array by cloning it. Here is the code which I used
ListViewItem[] tempCollection = new ListViewItem[listView1.Items.Count];
listView1.Items.CopyTo(tempCollection,0);
//Cloning and creating new array
ListViewItem[] clonedCollection = (ListViewItem[])tempCollection.Clone();
I am getting the tempCollection array filled correctly. But after cloning, clonedCollection array is showing all entries as NULL. What I am doing wrong ?

I have to generate a set of PDF files depending on the items selected on the ListView control. Generation of reports is a long running process - I am using BackGroundWorker and running it on DoWork event. As another thread has no access to the GUI elements, I am doing the cloning. I thought of cloning the ListViewItemCollection and using the cloned array. Is there any better approach for this problem ?

All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia

How to use google | Ask smart questions

GeneralRe: Array null on Cloning Pin
Xmen Real 28-Mar-08 21:12
professional Xmen Real 28-Mar-08 21:12 
GeneralRe: Array null on Cloning Pin
N a v a n e e t h29-Mar-08 2:16
N a v a n e e t h29-Mar-08 2:16 
GeneralRe: Array null on Cloning Pin
Xmen Real 29-Mar-08 2:20
professional Xmen Real 29-Mar-08 2:20 
GeneralRe: Array null on Cloning Pin
Guffa29-Mar-08 5:02
Guffa29-Mar-08 5:02 
GeneralRe: Array null on Cloning Pin
N a v a n e e t h30-Mar-08 19:21
N a v a n e e t h30-Mar-08 19:21 
QuestionHelp regarding CSS Pin
mrcsn28-Mar-08 18:56
mrcsn28-Mar-08 18:56 
GeneralRe: Help regarding CSS Pin
N a v a n e e t h28-Mar-08 20:05
N a v a n e e t h28-Mar-08 20:05 
GeneralProblem with adding font Pin
D i x y28-Mar-08 18:34
D i x y28-Mar-08 18:34 
QuestionConverting If Items Is nothing to C# code Pin
Saba0228-Mar-08 13:17
Saba0228-Mar-08 13:17 
GeneralRe: Converting If Items Is nothing to C# code Pin
MarkB77728-Mar-08 13:22
MarkB77728-Mar-08 13:22 
AnswerRe: Converting If Items Is nothing to C# code Pin
Bayram AKGÜL29-Mar-08 1:53
Bayram AKGÜL29-Mar-08 1:53 
GeneralGet Memory Footprint of an object Pin
Jordanwb28-Mar-08 11:03
Jordanwb28-Mar-08 11:03 
GeneralRe: Get Memory Footprint of an object Pin
Gareth H28-Mar-08 11:21
Gareth H28-Mar-08 11:21 
GeneralRe: Get Memory Footprint of an object Pin
User 665828-Mar-08 11:35
User 665828-Mar-08 11:35 
Generalsetting Contextmenu items order Pin
netJP12L28-Mar-08 10:19
netJP12L28-Mar-08 10:19 
GeneralRe: setting Contextmenu items order Pin
Gareth H28-Mar-08 10:25
Gareth H28-Mar-08 10:25 
GeneralPassing A Filled DataTable from a Background Worker Pin
Jammer28-Mar-08 8:42
Jammer28-Mar-08 8:42 

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.