Small 'asking user' tutorial

Discussion in 'Archives' started by -------owned-------, Apr 29, 2007.

Small 'asking user' tutorial
  1. Unread #1 - Apr 29, 2007 at 4:19 PM
  2. -------owned-------
    Joined:
    Jan 27, 2007
    Posts:
    1,225
    Referrals:
    0
    Sythe Gold:
    0

    -------owned------- Guru
    Banned

    Small 'asking user' tutorial

    Want to ask your user if he/she wants to open a new window etc?
    here's the answer:
    First off, add two forms. Make them named form1 and form2 (default).
    now, double click on form1 (which prob. run first).
    Enter this code:
    Code:
    answer = msgbox("Do you want to open form2?",vbokcancel,"ello" ' ello = _caption of msgbox
    if answer = vbok then
    form2.show
    form1.hide
    else
    msgbox "You didn't want to =(",,"Sad :("
    end if
    
    vbokcancel declares that you want a ok button and a cancel button.
     
< Prompting users in scar | Permission To Sell Guides (VOTE NOW) >

Users viewing this thread
1 guest


 
 
Adblock breaks this site