Showing results for 
Search instead for 
Do you mean 

SDK - handle.ToInt32()

Go to Solution

SDK - handle.ToInt32()

I can't seem to get rid of the error: 

the name 'handle' does not exist in the current context.

from code:


the handle.ToInt32() satement seems very popular throughout the C# SDK code examples.

hWnd = Handle.ToInt32();

Honored Contributor

Re: SDK - handle.ToInt32()

Handle is a property of a Form.

When you don't have a Form in your project you can always use 0 instead, but when you have one you can use this Handle to make a TRIM dialog show modal to that form so that it doesn't show itself behind it.

(Any opinions expressed in this forum are my own personal opinion and should not be construed as an official statement by DXC Technology.)

Analytics & Data Management
Application & Business Services
DXC Technology
//Add this to "OnDomLoad" event