Results 1 to 3 of 3

Thread: [RESOLVED] Popup text box

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2005
    Location
    England
    Posts
    79

    Resolved [RESOLVED] Popup text box

    What code would I use to make a question box popup asking the user to enter some information, EG their name, and on clicking OK, the information is submitted. If they click cancel, then an error pops up saying they have to select an answer.

    Cheers.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Popup text box

    You can use the InputBox function for simplicity if you don't have an issue with VB Runtime functions (members of the Microsoft.VisualBasic namespace). Look it up in the help for more info. Personally, I think the dialogue displayed is ugly so I wouldn't use it. I have a standard layout for all my dialogues so I create my own form to do it. If you choose that route, you would basically do exactly what was discussed in your earlier threads: call ShowDialog and retrieve a property value when the form is dismissed.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jul 2005
    Location
    England
    Posts
    79

    Re: Popup text box

    Cheers.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width