Click here to Skip to main content
15,922,894 members
Home / Discussions / C#
   

C#

 
GeneralRe: Comunicating with service application. Pin
\laddie18-Jun-07 19:24
\laddie18-Jun-07 19:24 
GeneralRe: Comunicating with service application. Pin
murad basdag18-Jun-07 23:12
murad basdag18-Jun-07 23:12 
QuestionHow Can i maximize windows throug coding in c#? Pin
help as an alias17-Jun-07 22:10
help as an alias17-Jun-07 22:10 
AnswerRe: How Can i maximize windows throug coding in c#? Pin
Christian Graus17-Jun-07 22:13
protectorChristian Graus17-Jun-07 22:13 
AnswerRe: How Can i maximize windows throug coding in c#? Pin
sam#17-Jun-07 22:15
sam#17-Jun-07 22:15 
Questiontext-2-speech Pin
Abdul8517-Jun-07 22:07
Abdul8517-Jun-07 22:07 
AnswerRe: text-2-speech Pin
Christian Graus17-Jun-07 22:11
protectorChristian Graus17-Jun-07 22:11 
GeneralRe: text-2-speech Pin
Abdul8518-Jun-07 19:54
Abdul8518-Jun-07 19:54 
GeneralRe: text-2-speech Pin
Dave Kreskowiak19-Jun-07 4:07
mveDave Kreskowiak19-Jun-07 4:07 
GeneralRe: text-2-speech Pin
Abdul8519-Jun-07 20:35
Abdul8519-Jun-07 20:35 
QuestionSoapFormatter DateTime Pin
hansipet17-Jun-07 22:00
hansipet17-Jun-07 22:00 
QuestionWorking with Excel in C# Pin
A M SOMAN17-Jun-07 21:40
A M SOMAN17-Jun-07 21:40 
AnswerRe: Working with Excel in C# Pin
Jimmanuel18-Jun-07 3:42
Jimmanuel18-Jun-07 3:42 
GeneralRe: Working with Excel in C# Pin
A M SOMAN18-Jun-07 20:57
A M SOMAN18-Jun-07 20:57 
AnswerRe: Working with Excel in C# Pin
\laddie18-Jun-07 19:30
\laddie18-Jun-07 19:30 
GeneralRe: Working with Excel in C# Pin
A M SOMAN18-Jun-07 20:57
A M SOMAN18-Jun-07 20:57 
Questionaudio steganography Pin
nikhilvrm17-Jun-07 21:08
nikhilvrm17-Jun-07 21:08 
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;
}
}

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.