[]
        
(Showing Draft Content)

C1.Win.TouchToolKit.C1Zoom.AutoShowControl

AutoShowControl Property

AutoShowControl

Gets or sets a value that indicates whether the control auto show when get focus or touch keyboard popup.

Declaration
public bool AutoShowControl { get; set; }
Property Value
Type Description
bool

true to auto show control; otherwise, false.

Examples

The following code example shows how to use this property.

This code example is part of a larger example provided for the Controls property.

public class GcZoomControlsDemo : Form
{
	private GcZoom _gcZoom1 = new GcZoom();
	private CheckBox _autoShowControlCheckBox;

	public GcZoomControlsDemo()
	{
		InitializeComponent();

		_gcZoom1.Target = this;

		_autoShowControlCheckBox.CheckedChanged += _autoShowControlCheckBox_CheckedChanged;
	}

	void _autoShowControlCheckBox_CheckedChanged(object sender, EventArgs e)
	{
		_gcZoom1.AutoShowControl = _autoShowControlCheckBox.Checked;
	}

	private void InitializeComponent()
	{
		_autoShowControlCheckBox = new CheckBox();
		_autoShowControlCheckBox.Text = "AutoShowControl";
		_autoShowControlCheckBox.Location = new Point(20, 70);
		_autoShowControlCheckBox.Size = new Size(120, 20);
		this.Controls.Add(_autoShowControlCheckBox);
	}
}
Public Class GcZoomControlsDemo
	Inherits Form
	Private _gcZoom1 As New GcZoom()
	Private _autoShowControlCheckBox As CheckBox

	Public Sub New()
		InitializeComponent()

		_gcZoom1.Target = Me

		AddHandler _autoShowControlCheckBox.CheckedChanged, AddressOf _autoShowControlCheckBox_CheckedChanged
	End Sub

	Private Sub _autoShowControlCheckBox_CheckedChanged(sender As Object, e As EventArgs)
		_gcZoom1.AutoShowControl = _autoShowControlCheckBox.Checked
	End Sub

	Private Sub InitializeComponent()
		_autoShowControlCheckBox = New CheckBox()
		_autoShowControlCheckBox.Text = "AutoShowControl"
		_autoShowControlCheckBox.Location = New Point(20, 70)
		_autoShowControlCheckBox.Size = New Size(120, 20)
		Me.Controls.Add(_autoShowControlCheckBox)
	End Sub
End Class