System.Windows.Forms.FileDialog.ButtonBack()

Here are the examples of the csharp api class System.Windows.Forms.FileDialog.ButtonBack() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Example 7

1. Example

Project: Unity-WinForms
Source File: FileDialog.cs
View license
protected override void OnKeyPress(KeyPressEventArgs e)
        {
            base.OnKeyPress(e);
            if (e.uwfKeyArgs.KeyCode == Keys.Escape)
            {
                DialogResult = DialogResult.Cancel;
                Close();
            }

            // Next folder.
            if (e.uwfKeyArgs.KeyCode == Keys.Return)
                fileRenderer.Next();

            // Refresh directory.
            if (e.uwfKeyArgs.KeyCode == Keys.F5)
                ButtonRefresh();

            if (e.uwfKeyArgs.Alt)
            {
                switch (e.uwfKeyArgs.KeyCode)
                {
                    case Keys.Left: ButtonBack(); break;
                    case Keys.Up: ButtonUp(); break;
                }
            }
        }