Results 1 to 2 of 2

Thread: yes no box? [resolved]

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2003
    Posts
    91

    yes no box? [resolved]

    i want 2 know if there is an included box that displays a message than yes/no... if they choose yes, do process one, no=process2...
    Last edited by Synth3t1c; Feb 7th, 2004 at 02:33 PM.

  2. #2
    Frenzied Member <ABX's Avatar
    Join Date
    Jul 2002
    Location
    Canada eh...
    Posts
    1,622
    VB Code:
    1. Dim mbRes As MsgBoxResult = MsgBox("Question?", MsgBoxStyle.YesNo, "Title")
    2.  
    3.         If mbRes = MsgBoxResult.Yes Then
    4.             'User Responded 'Yes'
    5.         ElseIf mbRes = MsgBoxResult.No Then
    6.             'User Responded 'No'
    7.         End If
    Tips:
    • Google is your friend! Search before posting!
    • Name your thread appropriately... "I Need Help" doesn't cut it!
    • Always post your code!!!! We can't read your mind!!! (well, at least most of us!)
    • Allways Include the Name and Line of the Exception (if one is occuring!)
    • If it is relevant state the version of Visual Studio/.Net Framwork you are using (2002/2003/2005)


    If you think I was helpful, rate my post
    IRC Contact: Rizon/xous ChakraNET/xous Freenode/xous

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