Click here to Skip to main content
15,906,708 members
Home / Discussions / C#
   

C#

 
GeneralPosting a File on a Form Pin
Member 138504915-Oct-04 11:27
Member 138504915-Oct-04 11:27 
GeneralRe: Posting a File on a Form Pin
Alvaro Mendez15-Oct-04 11:41
Alvaro Mendez15-Oct-04 11:41 
GeneralRe: Posting a File on a Form Pin
Member 138504915-Oct-04 15:33
Member 138504915-Oct-04 15:33 
GeneralRe: Posting a File on a Form Pin
Alvaro Mendez15-Oct-04 21:27
Alvaro Mendez15-Oct-04 21:27 
General.NET Remoting Reference Pin
Wender Oliveira15-Oct-04 9:45
Wender Oliveira15-Oct-04 9:45 
GeneralRe: .NET Remoting Reference Pin
Alex Korchemniy15-Oct-04 10:10
Alex Korchemniy15-Oct-04 10:10 
GeneralRe: .NET Remoting Reference Pin
Wender Oliveira15-Oct-04 10:15
Wender Oliveira15-Oct-04 10:15 
GeneralRe: .NET Remoting Reference Pin
Alex Korchemniy15-Oct-04 10:20
Alex Korchemniy15-Oct-04 10:20 
GeneralRe: .NET Remoting Reference Pin
Wender Oliveira15-Oct-04 10:24
Wender Oliveira15-Oct-04 10:24 
GeneralRe: .NET Remoting Reference Pin
Alex Korchemniy15-Oct-04 10:29
Alex Korchemniy15-Oct-04 10:29 
GeneralChange the caret color in a textbox Pin
ee9903515-Oct-04 7:30
ee9903515-Oct-04 7:30 
GeneralRe: Change the caret color in a textbox Pin
Alex Korchemniy15-Oct-04 9:47
Alex Korchemniy15-Oct-04 9:47 
GeneralRe: Change the caret color in a textbox Pin
Carl Mercier15-Oct-04 17:13
Carl Mercier15-Oct-04 17:13 
Generalslow listview refresh Pin
DF_Bandit15-Oct-04 6:49
DF_Bandit15-Oct-04 6:49 
GeneralRe: slow listview refresh Pin
Heath Stewart15-Oct-04 7:00
protectorHeath Stewart15-Oct-04 7:00 
GeneralRe: slow listview refresh Pin
DF_Bandit15-Oct-04 7:10
DF_Bandit15-Oct-04 7:10 
GeneralRe: slow listview refresh Pin
Heath Stewart15-Oct-04 8:44
protectorHeath Stewart15-Oct-04 8:44 
GeneralRe: slow listview refresh Pin
DF_Bandit15-Oct-04 9:39
DF_Bandit15-Oct-04 9:39 
GeneralRe: slow listview refresh Pin
Heath Stewart15-Oct-04 15:42
protectorHeath Stewart15-Oct-04 15:42 
GeneralRe: slow listview refresh Pin
afinnell18-Oct-04 6:17
afinnell18-Oct-04 6:17 
GeneralRe: slow listview refresh Pin
Heath Stewart18-Oct-04 6:46
protectorHeath Stewart18-Oct-04 6:46 
GeneralRe: slow listview refresh Pin
afinnell18-Oct-04 7:50
afinnell18-Oct-04 7:50 
This isn't really a thread synch problem, but a .NET invoke synch problem. In a native application you would normally call SendMessage to add items. This will handle synching the messages from a thread to the UI thread.

However in .NET a little more has to happen. A Control.Invoke needs to happen to dispatch a delegate. In the delegate you then need to invoke the Items.Add that in turn calls the SendMessage because the basic .NET controls wrap the Win32 API. This being the case it involves more calls then a native app invoking SendMessage. It involes two synch calls (Control.Invoke and SendMessage) and a marshalled call (The SendMessage).

I wonder how the performance of a native app would peform when adding many items in real-time to a list view. Microsoft Office 2003 does a great job of it when using the find feature so I know it can be done.

-
Drew
GeneralRe: slow listview refresh Pin
Heath Stewart18-Oct-04 10:06
protectorHeath Stewart18-Oct-04 10:06 
GeneralRe: slow listview refresh Pin
afinnell18-Oct-04 11:11
afinnell18-Oct-04 11:11 
GeneralRe: slow listview refresh Pin
Heath Stewart18-Oct-04 11:41
protectorHeath Stewart18-Oct-04 11:41 

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.