DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Visual Basic 4 / 5 / 6 (http://www.daniweb.com/forums/forum4.html)
-   -   msgbox that includes "yes to all" and "no to all" (http://www.daniweb.com/forums/thread94662.html)

Pareshja Oct 29th, 2007 5:18 am
msgbox that includes "yes to all" and "no to all"
 
Hi Guys,

I am a newbie and need some help. Is it possible to extend the message box functions to include buton "Yes to all and "no to all" in vb6

Kind regards

QVeen72 Oct 29th, 2007 9:59 am
Re: msgbox that includes "yes to all" and "no to all"
 
Hi,

Create a Custom MessageBox of Your own.:
1. Add a new for say frmMsg
2. Add a LabelControl To Display Message.
3. Make Controls WordWrap = True
4. Add 5 Command Buttons
5. Name them :Yes, No, Cancel, YesToAll, NoToAll
6. Add a Public Variable in a Module. and Populate it with Some Number in each CommandClick say ... 1,2,3,4,5
7. In Calling Form use this Code:

[code=vb]
frmMsg.Label1.Caption ="Want To Delete..?"
frmMsg.Show 1
[code]

And check for the Public Variable for which button is clicked..

REgards
Veena

Pareshja Oct 29th, 2007 10:16 am
Re: msgbox that includes "yes to all" and "no to all"
 
Cool thanks Veena. Your a star

Kind regards
Paresh

Pareshja Oct 30th, 2007 3:31 am
Re: msgbox that includes "yes to all" and "no to all"
 
Need more help. How do I stop the application so that it can wait for the answer from the frmMsg and only when I selected a button should it carry on execution of the program.

Regards

plusplus Oct 30th, 2007 4:34 am
Re: msgbox that includes "yes to all" and "no to all"
 
when you call the form add vbmodal

frmmsg.show vbmodal

Pareshja Oct 30th, 2007 4:52 am
Re: msgbox that includes "yes to all" and "no to all"
 
Cool, thanks. Works perfect


All times are GMT -4. The time now is 8:59 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC