Members

Technology Zones

IBM Learning Center

Articles

Hosted By

MaximumASP

Info

Rated
Read 77,157 times

Contents

Related Categories

Input Box function - Parameters

Parameters

The input box function takes three main parameters:

InputBox PromptText, DialogTitle, DefaultText

The PromptText is a string containing the text to be displayed as the prompt. The DialogTitle is a string containing the text to be displayed in the dialog's title, and DefaultText is a string containing the text to be already displayed in the text box.

James first started writing tutorials on Visual Basic in 1999 whilst starting this website (then known as VB Web). Since then, the site has grown rapidly, and James has written numerous tutorials, articles and reviews on VB, PHP, ASP and C#. In October 2003, James formed the company Developer Fusion Ltd, which owns this website, and also offers various development services. In his spare time, he's a 3rd year undergraduate studying Computer Science in the UK. He's also a Visual Basic MVP.

Comments

  • can i custumise the input dialog box?

    Posted by smp on 22 Mar 2004

    Hi
    I want to reduce the width of text box on InputBox & to change the location of the Buttons & textbox,
    is it possible?

    Regards
    Mahesh

  • Posted by becman on 25 Dec 2003

    what i want is a login form, but i cant get it to keep focus like when you have a messagebox or inputbox open you cant click the main form, how do i do that??:confused:

  • Posted by HyperHacker on 28 Jul 2003

    Suppose they just don't put anything in the box and click OK?

  • Posted by HyperHacker on 28 Jul 2003

    Unfortunately the input box isn't all the flexible. (You can't even hide the Cancel button.) You should use a custom form, it looks neater for getting 2 pieces of info anyway. :D

  • Input Box tp collect password field

    Posted by tirthankar.biswas on 25 Jun 2003

    :confused: Can u use Input Box to also collect password (ie starred input) also.
    I have a requirement whereby the program has to wait for input of userid and password . Input box works fine but I am...