Click here to Skip to main content
15,904,823 members
Home / Discussions / C#
   

C#

 
Questiongetting client ip Pin
Ankit Aneja18-Jan-06 0:41
Ankit Aneja18-Jan-06 0:41 
GeneralRe: getting client ip Pin
Guffa18-Jan-06 1:21
Guffa18-Jan-06 1:21 
GeneralRe: getting client ip Pin
Ankit Aneja18-Jan-06 1:26
Ankit Aneja18-Jan-06 1:26 
AnswerRe: getting client ip Pin
Guffa24-Jan-06 23:05
Guffa24-Jan-06 23:05 
Questionhelp me plssssssssssssss Pin
willsgeorge18-Jan-06 0:41
willsgeorge18-Jan-06 0:41 
AnswerRe: help me plssssssssssssss Pin
Sheel Gohe18-Jan-06 1:22
Sheel Gohe18-Jan-06 1:22 
QuestionCrystal reports sharing Pin
robmays18-Jan-06 0:24
robmays18-Jan-06 0:24 
Questionvideo playing Pin
sa maq18-Jan-06 0:05
sa maq18-Jan-06 0:05 
QuestionHow to Extract a Key ScanCode in WndProc Pin
redfish3417-Jan-06 23:07
redfish3417-Jan-06 23:07 
AnswerGOT IT! Shooting 2 for 2! Pin
redfish3418-Jan-06 17:09
redfish3418-Jan-06 17:09 
GeneralRe: GOT IT! Shooting 2 for 2! Pin
Dan Neely19-Jan-06 2:18
Dan Neely19-Jan-06 2:18 
Questionwana read a binary file and display its data into text file Pin
geek-age17-Jan-06 22:30
geek-age17-Jan-06 22:30 
AnswerRe: wana read a binary file and display its data into text file Pin
Guffa17-Jan-06 22:53
Guffa17-Jan-06 22:53 
GeneralRe: wana read a binary file and display its data into text file Pin
geek-age17-Jan-06 23:10
geek-age17-Jan-06 23:10 
AnswerRe: wana read a binary file and display its data into text file Pin
Guffa18-Jan-06 0:32
Guffa18-Jan-06 0:32 
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 

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.