Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need some VB6 code for a "msgbox button = Yes to all"

Status
Not open for further replies.

BruceBussell

Programmer
Jul 14, 2003
49
US
I need some VB6 code for a "msgbox button = Yes to all" as you see when overwriting Read Only files in Windows Explorer.

I need a MsgBox that not only has Yes, No, and Cancel, but also has the Yes to All button.

If anyone knows of any VB6 code segments that might let me do this, let me know.

Thanks,

 
you can create your own VB message box but it isn't a standard msgbox I don't think.

Hope I've been helpful,
Wayne Francis

If you want to get the best response to a question, please check out FAQ222-2244 first
 
Yes, the standard messagebox doesn't have this button, and while you can modify it to add one, it's definately not worth the effort. Writing your own will be much faster.

Chip H.


If you want to get the best response to a question, please check out FAQ222-2244 first
 
Yeh if youre having checkboxes on a "msgbox" surely thats a form not a msgbox? So on your form create a command button and label it up as "Yes to All" then in the code youll have the onClick_btnYesAll subroutine...

In that you'll need to manually check the boxes: chkbx1.value = true or however they work, do that for all the check boxes then when youve set them all to true, THEN call the next subroutine:

Sub onClick_btnYesAll()

chkbx1.value = true
chkbx2.value = true
chkbx3.value = true

Call ProcessResults

End Sub

Just to illustrate. Hope this helps =)

~*Gwar3k1*~
"To the pressure, everything's just like: an illusion. I'll be losing you before long..."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top