SDK - handle.ToInt32()

Go to solution
Dirk O Hernande
Valued Contributor.

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();

Sander Hoogwerf
Outstanding 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