Click here to Skip to main content
15,897,315 members
Home / Discussions / C#
   

C#

 
AnswerRe: audio steganography Pin
Christian Graus17-Jun-07 21:10
protectorChristian Graus17-Jun-07 21:10 
GeneralRe: audio steganography Pin
nikhilvrm17-Jun-07 21:20
nikhilvrm17-Jun-07 21:20 
GeneralRe: audio steganography Pin
Colin Angus Mackay17-Jun-07 21:44
Colin Angus Mackay17-Jun-07 21:44 
GeneralRe: audio steganography Pin
Christian Graus17-Jun-07 22:09
protectorChristian Graus17-Jun-07 22:09 
GeneralRe: audio steganography Pin
nikhilvrm17-Jun-07 22:33
nikhilvrm17-Jun-07 22:33 
GeneralRe: audio steganography Pin
Christian Graus17-Jun-07 22:43
protectorChristian Graus17-Jun-07 22:43 
AnswerRe: audio steganography Pin
blackjack215017-Jun-07 22:16
blackjack215017-Jun-07 22:16 
QuestionAdd Items to a Listview in a fast way? Pin
Leia201117-Jun-07 21:07
Leia201117-Jun-07 21:07 
Hey guys,

I need to add about 7000-14000 items to a listview.
But listing all the items is far too slow.
Do you have any idea how to make it faster?
thank you very much!

I use the following method:

private void trvLeft_AfterSelect(object sender, System.Windows.Forms.TreeViewEventArgs e)

{

DataRow[] rows = new DataRow [PnlSelect.pMCPTVARIABLEDESC .Rows.Count ];
System.Windows .Forms .ListView .ListViewItemCollection itlist= new System.Windows .Forms .ListView .ListViewItemCollection(lsvLeft);

try
{
lsvLeft.BeginUpdate ();
Cursor.Current =System.Windows .Forms .Cursors .WaitCursor;


//Clear old content:
lsvLeft.Clear ();//lsvLeft is my ListView
pTrvLeftTag=(TrvLeftTag)e.Node.Tag ;


rows=PnlSelect.pMCPTVARIABLEDESC .Select ("VARGROUPID='"+pTrvLeftTag.vargroup +"' AND CONNECTIONID='"+pTrvLeftTag.connection +"'");

foreach(DataRow row in rows)
{
itlist.Add(row["VARIABLENAME"].ToString ());
}



//add images
foreach( ListViewItem it in lsvLeft.Items )
{
it.ImageIndex =6;
}


}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message );
}
finally
{
lsvLeft.EndUpdate ();
Cursor.Current =System.Windows .Forms .Cursors .Default;
}
}
AnswerRe: Add Items to a Listview in a fast way? Pin
Christian Graus17-Jun-07 21:32
protectorChristian Graus17-Jun-07 21:32 
AnswerRe: Add Items to a Listview in a fast way? Pin
Dave Kreskowiak18-Jun-07 2:28
mveDave Kreskowiak18-Jun-07 2:28 
GeneralRe: Add Items to a Listview in a fast way? Pin
Leia201118-Jun-07 2:51
Leia201118-Jun-07 2:51 
GeneralRe: Add Items to a Listview in a fast way? Pin
Dave Kreskowiak18-Jun-07 15:44
mveDave Kreskowiak18-Jun-07 15:44 
AnswerRe: Add Items to a Listview in a fast way? Pin
PIEBALDconsult18-Jun-07 10:07
mvePIEBALDconsult18-Jun-07 10:07 
AnswerRe: Add Items to a Listview in a fast way? Pin
girm21-Jun-07 6:45
girm21-Jun-07 6:45 
GeneralRe: Add Items to a Listview in a fast way? Pin
Leia201125-Jun-07 21:02
Leia201125-Jun-07 21:02 
Questionwant to use VC++ class in C# Pin
devesh_code17-Jun-07 20:26
devesh_code17-Jun-07 20:26 
AnswerRe: want to use VC++ class in C# Pin
Christian Graus17-Jun-07 21:12
protectorChristian Graus17-Jun-07 21:12 
AnswerRe: want to use VC++ class in C# Pin
Nissim Salomon17-Jun-07 21:44
Nissim Salomon17-Jun-07 21:44 
QuestionCustom Control Pin
Expert Coming17-Jun-07 18:47
Expert Coming17-Jun-07 18:47 
Questionpartial class Pin
Kilua1117-Jun-07 17:44
Kilua1117-Jun-07 17:44 
AnswerRe: partial class Pin
Dave Kreskowiak17-Jun-07 18:05
mveDave Kreskowiak17-Jun-07 18:05 
GeneralRe: partial class Pin
Kilua1117-Jun-07 19:25
Kilua1117-Jun-07 19:25 
GeneralRe: partial class Pin
Christian Graus17-Jun-07 20:11
protectorChristian Graus17-Jun-07 20:11 
GeneralRe: partial class Pin
Dave Kreskowiak18-Jun-07 2:21
mveDave Kreskowiak18-Jun-07 2:21 
AnswerRe: partial class Pin
Sathesh Sakthivel17-Jun-07 18:07
Sathesh Sakthivel17-Jun-07 18:07 

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.