cancel

SDK - handle.ToInt32()

SOLVED
Go to solution
Highlighted
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:

int

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

hWnd = Handle.ToInt32();

1 REPLY
Sander Hoogwerf
Outstanding Contributor.
Solution

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