> For the complete documentation index, see [llms.txt](https://web-api.iceteagroup.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://web-api.iceteagroup.com/ppj.web.49/controls/ppj.runtime.windows.salcontext.md).

# SalContext

Namespace: **PPJ.Runtime.Windows**

Assembly: **PPJ.Web.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

### ![](/files/qoQXnPICsjBVNBSqpOj9)SalContext(ctrl)

Constructs a new SalContext and pushes it on the stack.

| Name     | Type                                                      | Description                                  |
| -------- | --------------------------------------------------------- | -------------------------------------------- |
| **ctrl** | [Control](https://docs.wisej.com/api?q=wisej.web.control) | Target control on which to execute the call. |

### ![](/files/qoQXnPICsjBVNBSqpOj9)SalContext(ctrl, root)

Constructs a new SalContext and pushes it on the stack.

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

### ![](/files/qoQXnPICsjBVNBSqpOj9)SalContext(ctrl, locals)

Constructs a new SalContext and pushes it on the stack.

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

### ![](/files/qoQXnPICsjBVNBSqpOj9)SalContext(module)

Constructs a new SalContext and pushed it on the stack.

| Name       | Type                                                                               | Description |
| ---------- | ---------------------------------------------------------------------------------- | ----------- |
| **module** | [Assembly](https://docs.microsoft.com/en-us/dotnet/api/system.reflection.assembly) |             |

## Properties

### ![](/files/qoQXnPICsjBVNBSqpOj9)Control

[Control](https://docs.wisej.com/api?q=wisej.web.control): Returns the target control of the messages that created this context.

### ![](/files/jDiecrwjcc5yZsrGcmX2)Current

[SalContext](https://docs.wisej.com/extensions/ppj.web.49/controls/ppj.runtime.windows.salcontext.md): Returns the current context at the top of the stack.

### ![](/files/qoQXnPICsjBVNBSqpOj9)Disposed

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

### ![](/files/qoQXnPICsjBVNBSqpOj9)Module

[Assembly](https://docs.microsoft.com/en-us/dotnet/api/system.reflection.assembly): Returns the module that created the control in context.

## Methods

### ![](/files/qoQXnPICsjBVNBSqpOj9)Dispose()
