• Api Documentation
  • Source Code
Search Results for

    Show / Hide Table of Contents
    • SharpDialogs
      • SharpDialogFilter
      • SharpDialogHelpers
      • SharpFileOpenDialog
      • SharpFileSaveDialog
      • SharpFolderBrowserDialog
      • SharpInputBox
      • SharpProgressDialog
    • SharpDialogs.Wpf
      • SharpFileOpenDialogWpf
      • SharpFileSaveDialogWpf
      • SharpFolderBrowserDialogWpf
      • SharpProgressDialogWpf
    • SharpWpfAboutBox
      • SharpAboutBox
      • SharpAppProperties

    Class SharpInputBox

    A prompt in a dialog box.

    Inheritance
    object
    SharpInputBox
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: SharpDialogs
    Assembly: SharpDialogs.dll
    Syntax
    public static class SharpInputBox

    Methods

    | Edit this page View Source

    Show(string, string, string, int, int)

    Displays a prompt in a dialog box, waits for the user to input text or click a button, and then returns a string containing the contents of the text box.

    Declaration
    public static string Show(string prompt, string title = "", string defaultResponse = "", int xPos = -1, int yPos = -1)
    Parameters
    Type Name Description
    string prompt

    The prompt of the dialog.

    string title

    The title of the dialog.

    string defaultResponse

    The default reponse of the dialog.

    int xPos

    The x position of the dialog.

    int yPos

    The y position of the dialog.

    Returns
    Type Description
    string
    • Edit this page
    • View Source
    In this article
    Back to top Copyright Jérémy Ansel (c) 2025