Showing results for 
Search instead for 
Do you mean 

SDK - handle.ToInt32()

SOLVED
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:

int

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

hWnd = Handle.ToInt32();

1 REPLY
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 Hewlett Packard Enterprise.)

Analytics & Data Management
Application & Business Services
HPE Enterprise Services