Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > Brain Dead


Reply
 
Thread Tools Display Modes
  #1  
Old 09-11-2004, 01:01 PM
tamandt tamandt is offline
Centurion
 
Join Date: Nov 2001
Posts: 158
Default Brain Dead


I must be brain dead today, i need a messagebox like inputbox, except that only returns true or false, i know there is one, i just cant think of the command.
Reply With Quote
  #2  
Old 09-11-2004, 01:03 PM
MikeJ's Avatar
MikeJ MikeJ is offline
Retread

Retired Moderator
* Expert *
 
Join Date: Sep 2002
Location: Austin, Texas
Posts: 6,742
Default

Um... Do you mean like a message box that you can input stuff into, but only has a true/false button? I don't think there is one. Or do you mean one that will return true/false based on the value? There you'd have to code your own.

Can you please explain what you are trying to do a little bit more?
__________________
{ Lex Fori } { Locus Classicus } { Rutilus Scrinium }
Osculare pultem meam!
Reply With Quote
  #3  
Old 09-11-2004, 01:05 PM
tamandt tamandt is offline
Centurion
 
Join Date: Nov 2001
Posts: 158
Default

Simply id like to ask this question "The insalled version and the on disk version are the same, are you sure you would like to install this app again"

OK, CANCEL buttons or YES, NO buttons could be used

the result must be nothing but True or False
Reply With Quote
  #4  
Old 09-11-2004, 01:08 PM
tamandt tamandt is offline
Centurion
 
Join Date: Nov 2001
Posts: 158
Default

Actually i found it thanks, the msgbox command does it
Reply With Quote
  #5  
Old 09-11-2004, 01:10 PM
MikeJ's Avatar
MikeJ MikeJ is offline
Retread

Retired Moderator
* Expert *
 
Join Date: Sep 2002
Location: Austin, Texas
Posts: 6,742
Default

Ah.
Code:
Dim mbrResult As VbMessageBoxResult mbrResult = MsgBox("The installed version and the on-disk version are the " & _ "same, are you sure you would like to install this application again?", _ vbYesNoCancel + vbQuestion, "Are you sure?") Select Case mbrResult Case vbYes 'User selected "YES" Case vbNo 'User selected "NO" Case vbCancel 'User selected "CANCEL" Case Else 'Something's wrong, this wasn't an option to select!!! End Select
__________________
{ Lex Fori } { Locus Classicus } { Rutilus Scrinium }
Osculare pultem meam!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->