Thursday, October 23, 2008

Accessing object anywhere in code

If you want to see some object wherever in code (in watch window) do the following:
  • Set breakpoint in a place where you create this object
  • Right mouse button and "Add Watch"
  • In Watch window, right mouse button on your object and select "Make Object ID"
  • You will see something like {1#}. 1# is your object ID
  • Now, wherever you break your code you can add in watch window 1# and you will see your object

1 comment:

Saiful Alam said...

Your blog is very nice...
visit my blog example