Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I've seen a few code samples with SuspendLayout and ResumeLayout method calls...
what are they for?
Thanks,
Shane.
Hi Shane,
When working with generic objects in a shared session environment, changes in one client propagate to all other clients as well. This invalidates all objects and triggers automatic fetching of the properties and layout the next time they are being accessed.
To synchronize this with your code, you can delay a possible invalidation until after you have made your changes to the generic object.
There are two ways to do this:
- With a using block
- Explicitly suspending and resuming layout
I hope this clarifies your doubt....
Regards,
Prabhu Appu
Hi Shane,
When working with generic objects in a shared session environment, changes in one client propagate to all other clients as well. This invalidates all objects and triggers automatic fetching of the properties and layout the next time they are being accessed.
To synchronize this with your code, you can delay a possible invalidation until after you have made your changes to the generic object.
There are two ways to do this:
- With a using block
- Explicitly suspending and resuming layout
I hope this clarifies your doubt....
Regards,
Prabhu Appu
Hi Prabhu,
thanks for that
Shane.