Results 1 to 4 of 4

Thread: Need help

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2001
    Posts
    1

    Question Need help

    I did this before,but haven't done it in a long time so I forgot.It's very easy to do.I can't remeber what is the script to make a yes or no button appear in a msgbox.It goes something like this

    msgbox "hello"
    mb_yesno
    iff mbresult = yes Then
    MsgBox "bye"
    ElseIf mbresult = no Then
    msgbox "bye"

    i would be very grateful if someone would tell me how to make the yes or no appear correct and if they could tell me if im doing anything else wrong.

  2. #2
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800
    int test;
    yes = MessageBox(hWnd, "Hello", "Hi", MB_YESNO);
    if(test==ID_YES) { bla bla bla; }
    if(test==ID_NO) {bla bla; }

  3. #3
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    Originally posted by SteveCRM
    int test;
    yes = MessageBox(hWnd, "Hello", "Hi", MB_YESNO);
    if(test==ID_YES) { bla bla bla; }
    if(test==ID_NO) {bla bla; }

    Code:
    int test; 
    test = MessageBox(hWnd, "Hello", "Hi", MB_YESNO); 
    if(test==ID_YES) { bla bla bla; } 
    if(test==ID_NO) {bla bla; }
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  4. #4
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800
    grrrrrr....I rewrote that 3 times because I kept missing something out.....apparently I missed that one

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