Datalogic .NET SDK

SetTouchScreenEnable (Method)

 

Syntax

 

   public static Boolean SetTouchScreenEnable(Boolean bEnable);

 

 

Class                           : Device

Namespace                : Datalogic.API

Assembly                   : Datalogic.API.DLL

 

 

Description

Enable or disable the touch screen.

 

 

Parameters Table

 

Type

Parameter

Description

[in]

Boolean

bEnable

Set to true to enable the touch screen, false to disable.

 

 

 

 

[returns]

Boolean

 

 

If the status is successfully set then TRUE is returned, else FALSE is returned.

[on error]

FALSE

 

-

 

 

Example

 

        private void btnTouch_Click(object sender, EventArgs e)

        {

            bool b = Device.SetTouchScreenEnable(false);

            b = Device.GetTouchScreenEnable(out bTouchState);

            txtTouchStatus.Text = bTouchState.ToString() + ". Wait...";

 

            // pause

            for (int i = 0; i < 100000000; i++) { };

 

            b = Device.SetTouchScreenEnable(true);

            b = Device.GetTouchScreenEnable(out bTouchState);

            txtTouchStatus.Text = bTouchState.ToString();

 

        }

 

 

 

 

See Also

Example #026.

 

Copyright © Datalogic ADC. All Right Reserved