# 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

### ![](/files/dBIrS7XBDGmrzmTRbSI6)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. |

### ![](/files/dBIrS7XBDGmrzmTRbSI6)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)               |                                              |

### ![](/files/dBIrS7XBDGmrzmTRbSI6)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

### ![](/files/dBIrS7XBDGmrzmTRbSI6)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

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

Dispose SalContext


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://desktop-api.iceteagroup.com/ppj.runtime.49/controls/ppj.runtime.windows.salcontext.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
