Click here to Skip to main content
15,894,410 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
Generalbidirectional channel .Net Remoting with outbound only firewall Pin
DeepToot12-Apr-05 9:00
DeepToot12-Apr-05 9:00 
GeneralRe: bidirectional channel .Net Remoting with outbound only firewall Pin
Sebastian Schneider13-Apr-05 0:51
Sebastian Schneider13-Apr-05 0:51 
QuestionCaching Block pro's and con's? Pin
J_Dean12-Apr-05 8:07
J_Dean12-Apr-05 8:07 
GeneralO/R mapping Pin
Member 281228412-Apr-05 0:32
Member 281228412-Apr-05 0:32 
QuestionSystem tray icon for windows service? Pin
Nathan Ridley11-Apr-05 14:57
Nathan Ridley11-Apr-05 14:57 
AnswerRe: System tray icon for windows service? Pin
Ray Cassick13-Apr-05 7:47
Ray Cassick13-Apr-05 7:47 
GeneralPerformance issue on drawing Labels Pin
johanhertz10-Apr-05 4:19
johanhertz10-Apr-05 4:19 
GeneralRe: Performance issue on drawing Labels Pin
Sebastian Schneider11-Apr-05 2:41
Sebastian Schneider11-Apr-05 2:41 
It depends on what you are trying to achieve with your app.

If its a representation of a plant or installation, you will have to update only the labels which have changed (by comparison).

If you are resizing your form often, you should only draw the labels when the resizing is done (on completion).

If you just want to change labels time-dependant, you should use a timer which ticks every so often and updates one set of labels. (by timer)

If you have other windows which are drawn on top of your app, you should only redraw the changed region (by screen-region)

The problem is, that Windows is responsible for telling applications to redraw. Windows passes along some information, including the exact screen area which needs to be redrawn. If you dont take this into consideration, you will end up redrawing the whole windows every time a message-box pops up.

Updating controls has a HUGE overhead associated with it. You should try to update the labels rarely. Say, you are doing some computations and are updating the label continously. Bad idea. Instead, you should use a seperate thread to compute the results and update the label afterwards. That way, your form will still respond to size- and position-changes - and, since the labels have not been updated, Windows can simply move the graphic representation of your window without having to redraw every time.

Cheers
Sid
GeneralRe: Performance issue on drawing Labels Pin
johanhertz13-Apr-05 8:01
johanhertz13-Apr-05 8:01 
GeneralBorder/Cursor problem Pin
Masaia8-Apr-05 3:16
Masaia8-Apr-05 3:16 
GeneralRe: Border/Cursor problem Pin
MoustafaS12-Apr-05 15:39
MoustafaS12-Apr-05 15:39 
GeneralRe: Border/Cursor problem Pin
[Marc]16-May-05 14:53
[Marc]16-May-05 14:53 
GeneralBinaryWriter/Reader Endian mode Pin
CoderCat7-Apr-05 7:20
CoderCat7-Apr-05 7:20 
GeneralRe: BinaryWriter/Reader Endian mode Pin
Anonymous7-Apr-05 18:54
Anonymous7-Apr-05 18:54 
GeneralForm z-order between apps Pin
bherman697-Apr-05 3:21
bherman697-Apr-05 3:21 
GeneralRe: Form z-order between apps Pin
Dave Kreskowiak11-Apr-05 8:22
mveDave Kreskowiak11-Apr-05 8:22 
GeneralRe: Form z-order between apps Pin
bherman6911-Apr-05 8:30
bherman6911-Apr-05 8:30 
Generalplateform Pin
_tasleem6-Apr-05 23:59
_tasleem6-Apr-05 23:59 
GeneralRe: plateform Pin
Kevin McFarlane7-Apr-05 5:32
Kevin McFarlane7-Apr-05 5:32 
Generalcheck if a port is free Pin
madretierra6-Apr-05 20:42
madretierra6-Apr-05 20:42 
GeneralRe: check if a port is free Pin
S. Senthil Kumar7-Apr-05 20:55
S. Senthil Kumar7-Apr-05 20:55 
GeneralRe: check if a port is free Pin
madretierra8-Apr-05 5:41
madretierra8-Apr-05 5:41 
GeneralDatagrid column problem Pin
pgonc6-Apr-05 3:16
pgonc6-Apr-05 3:16 
GeneralTcpClient being blocked on Local host Pin
Will Willow6-Apr-05 2:05
Will Willow6-Apr-05 2:05 
GeneralRe: TcpClient being blocked on Local host Pin
S. Senthil Kumar6-Apr-05 2:14
S. Senthil Kumar6-Apr-05 2:14 

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.