Solid Edge Design Manager Object Library
DisplayAlerts Property
DesignManager ActiveX DLL > Application Object : DisplayAlerts Property
Description
Enables or disables the display of alerts and messages.
Property type
Read-write property
Syntax
Visual Basic
Public Property DisplayAlerts As Long
Example
Option Infer On

Imports System
Imports System.Runtime.InteropServices

Namespace Examples
    Friend Class Program
        <STAThread>
        Shared Sub Main(ByVal args() As String)
            Dim application As DesignManager.Application = Nothing

            Try
                application = New DesignManager.Application()

                ' Disable alerts.
                application.DisplayAlerts = 0

                ' Enable alerts.
                application.DisplayAlerts = 1
            Catch ex As System.Exception
                Console.WriteLine(ex)
            End Try
        End Sub
    End Class
End Namespace
using System;
using System.Runtime.InteropServices;

namespace Examples
{
    class Program
    {
        [STAThread]
        static void Main(string[] args)
        {
            DesignManager.Application application = null;

            try
            {
                application = new DesignManager.Application();

                // Disable alerts.
                application.DisplayAlerts = 0;

                // Enable alerts.
                application.DisplayAlerts = 1;
            }
            catch (System.Exception ex)
            {
                Console.WriteLine(ex);
            }
        }
    }
}
See Also

Application Object  | Application Members