VB6 msgbox, optionbutton

how to put optionbutton in messagebox

Page 1 of 1

4 Replies - 3786 Views - Last Post: 18 October 2009 - 10:49 PM Rate Topic: -----

#1 karishma s  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 18-October 09

VB6 msgbox, optionbutton

Posted 18 October 2009 - 10:47 AM

i want to put a few option buttons inside a message box. how is that possible? or else i want a few option buttons to appear in a label on the click of a command button. plz help!!
Is This A Good Question/Topic? 0
  • +

Replies To: VB6 msgbox, optionbutton

#2 bytelogik  Icon User is offline

  • D.I.C Head

Reputation: 22
  • View blog
  • Posts: 212
  • Joined: 06-October 09

Re: VB6 msgbox, optionbutton

Posted 18 October 2009 - 11:09 AM

You cannot use the default MsgBox function to display option buttons.

If you want to put option buttons then you will have to design your own message box.

For this you can either use the Picture box or Frame control with a label. You can place your option buttons on them and make the picture box / frame to visible=true or visible=false just like the message box.

keep smiling.
Was This Post Helpful? 0
  • +
  • -

#3 olibenu  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 45
  • View blog
  • Posts: 537
  • Joined: 31-December 08

Re: VB6 msgbox, optionbutton

Posted 18 October 2009 - 11:12 AM

msgbox is an already fixed thing, you can only vary the msg, title and or buttons. to add option boxes, just design your own form. option boxes can not appear in labels, try using frames
Was This Post Helpful? 0
  • +
  • -

#4 vb5prgrmr  Icon User is offline

  • D.I.C Lover

Reputation: 109
  • View blog
  • Posts: 1,016
  • Joined: 21-March 09

Re: VB6 msgbox, optionbutton

Posted 18 October 2009 - 10:39 PM

While I agree that you should make your own form that looks like a message box, you can however "subclass msgbox vb6" (yahoo, google, ask, answer, bing).



Good Luck
Was This Post Helpful? 0
  • +
  • -

#5 Shobana Sundarajan  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 14-October 09

Re: VB6 msgbox, optionbutton

Posted 18 October 2009 - 10:49 PM

You can use "OK" and "Cancel"

By substituting MessageBoxButtons::YesNo with MessageBoxButtons::OKCancel

MessageBoxButtons Enum

Short of that you would have to create a new form, as I don't believe the Enum can be extended. :^:
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1