Click here to Skip to main content
15,895,667 members
Home / Discussions / C#
   

C#

 
Questionusing javascript and xml Pin
imsathy17-Jan-06 21:50
imsathy17-Jan-06 21:50 
QuestionDatagridview determine if row is a new row Pin
CandyMe17-Jan-06 21:47
CandyMe17-Jan-06 21:47 
AnswerRe: Datagridview determine if row is a new row Pin
sathish s17-Jan-06 22:33
sathish s17-Jan-06 22:33 
QuestionHow to do media stremining? Pin
Divyang Mithaiwala17-Jan-06 20:04
Divyang Mithaiwala17-Jan-06 20:04 
AnswerRe: How to do media stremining? Pin
Dave Kreskowiak18-Jan-06 5:18
mveDave Kreskowiak18-Jan-06 5:18 
QuestionWhat's more easy for the machine? Pin
shopi3017-Jan-06 19:43
shopi3017-Jan-06 19:43 
AnswerRe: What's more easy for the machine? Pin
CWIZO17-Jan-06 21:03
CWIZO17-Jan-06 21:03 
AnswerRe: What's more easy for the machine? Pin
Guffa17-Jan-06 21:51
Guffa17-Jan-06 21:51 
You are forgetting something. The Visible property is not just a memory location, it's a property. It does quite a lot more than just changing a single memory location.

When getting the value, the Visibe property calls Control.GetVisibleCore to get the value from the state of the control. When setting the value, the Visible property calls Control.SetVisibleCore to update the control.

One of the first things that SetVisibleCore does, is to call GetVisibleCore to check if the operation will change the value of the property. If it won't, the method skips changing the visual apperance of the control and just updates the state of the control.

The first case is faster if the property doesn't change value, and the second case is faster if the property does change value. So which method is faster depends on the probability of the property to change value.

If you want it really fast, you'll keep a local copy of the value of the Visible property, and check that value before changing the actual property.

---
b { font-weight: normal; }


-- modified at 3:52 Wednesday 18th January, 2006
GeneralRe: What's more easy for the machine? Pin
shopi3018-Jan-06 1:24
shopi3018-Jan-06 1:24 
GeneralRe: What's more easy for the machine? Pin
shopi3018-Jan-06 1:25
shopi3018-Jan-06 1:25 
AnswerRe: What's more easy for the machine? Pin
DavidNohejl17-Jan-06 21:47
DavidNohejl17-Jan-06 21:47 
GeneralRe: What's more easy for the machine? Pin
shopi3018-Jan-06 1:25
shopi3018-Jan-06 1:25 
QuestionFirewall development using C#(need help) Pin
MACODER17-Jan-06 18:37
MACODER17-Jan-06 18:37 
AnswerRe: Firewall development using C#(need help) Pin
Colin Angus Mackay17-Jan-06 22:54
Colin Angus Mackay17-Jan-06 22:54 
AnswerRe: Firewall development using C#(need help) Pin
Dave Kreskowiak18-Jan-06 5:10
mveDave Kreskowiak18-Jan-06 5:10 
QuestionC# program for transparent screen lock Pin
siwei9917-Jan-06 16:30
siwei9917-Jan-06 16:30 
Question2 TreeView Issues Pin
LighthouseJ17-Jan-06 16:01
LighthouseJ17-Jan-06 16:01 
QuestionControl/literal Pin
student_rhr17-Jan-06 14:22
student_rhr17-Jan-06 14:22 
AnswerRe: Control/literal Pin
Christian Graus17-Jan-06 14:31
protectorChristian Graus17-Jan-06 14:31 
AnswerRe: Control/literal Pin
Guffa17-Jan-06 21:57
Guffa17-Jan-06 21:57 
QuestionTopMost Window Pin
Careth Jefferson17-Jan-06 13:51
Careth Jefferson17-Jan-06 13:51 
AnswerRe: TopMost Window Pin
Christian Graus17-Jan-06 14:02
protectorChristian Graus17-Jan-06 14:02 
AnswerRe: TopMost Window Pin
Careth Jefferson17-Jan-06 14:14
Careth Jefferson17-Jan-06 14:14 
GeneralRe: TopMost Window Pin
Christian Graus17-Jan-06 14:15
protectorChristian Graus17-Jan-06 14:15 
GeneralRe: TopMost Window Pin
Careth Jefferson17-Jan-06 19:08
Careth Jefferson17-Jan-06 19:08 

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.