C# Класс DSShared.Windows.InputBox

Показать файл Открыть проект

Открытые методы

Метод Описание
InputBox ( ) : System

Default constructor, Calls this("Input value","Input Box","")

InputBox ( string caption ) : System

Constructor, calls this(caption,"Input","")

InputBox ( string title, Panel contents ) : System

InputBox ( string caption, string title ) : System

Constructor, calls this(caption, title,"")

InputBox ( string caption, string title, string defaultValue ) : System

Constructor specifying all arguements

Show ( IWin32Window parent ) : DialogResult

Gives focus to the text box and calls ShowDialog()

ShowDialog ( string title, Panel contents ) : DialogResult

Creates an InputBox(title,contents) and returns the value of calling ShowDialog() on it

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Clean up any resources being used.

Приватные методы

Метод Описание
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

buttonClick ( object sender, EventArgs e ) : void
txtInput_KeyDown ( object sender, System e ) : void

Описание методов

Dispose() защищенный Метод

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Результат void

InputBox() публичный Метод

Default constructor, Calls this("Input value","Input Box","")
public InputBox ( ) : System
Результат System

InputBox() публичный Метод

Constructor, calls this(caption,"Input","")
public InputBox ( string caption ) : System
caption string
Результат System

InputBox() публичный Метод

public InputBox ( string title, Panel contents ) : System
title string Title of the form
contents Panel Panel containing UI elements for the user to select
Результат System

InputBox() публичный Метод

Constructor, calls this(caption, title,"")
public InputBox ( string caption, string title ) : System
caption string
title string
Результат System

InputBox() публичный Метод

Constructor specifying all arguements
public InputBox ( string caption, string title, string defaultValue ) : System
caption string Text that will be shown above the text box
title string Title of the form
defaultValue string Initial value of the text box
Результат System

Show() публичный Метод

Gives focus to the text box and calls ShowDialog()
public Show ( IWin32Window parent ) : DialogResult
parent IWin32Window
Результат DialogResult

ShowDialog() публичный статический Метод

Creates an InputBox(title,contents) and returns the value of calling ShowDialog() on it
public static ShowDialog ( string title, Panel contents ) : DialogResult
title string
contents Panel
Результат DialogResult