# SalContext

Namespace: **PPJ.Runtime.Windows**

Assembly: **PPJ.Runtime.49** (4.9.0.0)

Synchronizes the Sys.hWndItem, Sys.hWndForm and Sys.hWndForm with the control handling the message.

{% tabs %}
{% tab title="C#" %}

```csharp
public class SalContext : IDisposable
```

{% endtab %}

{% tab title="VB.NET" %}

```visual-basic
Public Class SalContext
    Inherits IDisposable
```

{% endtab %}
{% endtabs %}

## Constructors

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)SalContext(ctrl)

Constructs a new SalContext and pushes it on the stack.

| Name     | Type                                                                                | Description                                  |
| -------- | ----------------------------------------------------------------------------------- | -------------------------------------------- |
| **ctrl** | [Control](https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.control) | Target control on which to execute the call. |

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)SalContext(ctrl, root)

Constructs a new SalContext and pushes it on the stack.

| Name     | Type                                                                                | Description                                  |
| -------- | ----------------------------------------------------------------------------------- | -------------------------------------------- |
| **ctrl** | [Control](https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.control) | Target control on which to execute the call. |
| **root** | [Boolean](https://docs.microsoft.com/en-us/dotnet/api/system.boolean)               |                                              |

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)SalContext(ctrl, locals)

Constructs a new SalContext and pushes it on the stack.

| Name       | Type                                                                                | Description                                  |
| ---------- | ----------------------------------------------------------------------------------- | -------------------------------------------- |
| **ctrl**   | [Control](https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.control) | Target control on which to execute the call. |
| **locals** | [Object](https://docs.microsoft.com/en-us/dotnet/api/system.object)                 |                                              |

## Properties

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)Disposed

[Boolean](https://docs.microsoft.com/en-us/dotnet/api/system.boolean): Returns true if the SalContext has been disposed of (out of scope).

## Methods

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)Dispose()

Dispose SalContext
