Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
_MessageBox ignores default button
#3
(04-27-2025, 10:28 AM)johngreening Wrote:
Code: (Select All)
Dim As Long q

q = _MessageBox("caution", "lose edits?", "yesno", "question", 0)
Print q

it happened to me too.  on linux i expected it to select "no".  for the last parameter set to zero specifically.  this was on debian with mate desktop.

it's understandable that zero for last parameter.  or if that parameter is omitted.  is supposed to select the "default" option.  but for a yes/no question.  it is a bit confusing if "yes" has to be the "default" option.
Reply


Messages In This Thread
RE: _MessageBox ignores default button - by hsiangch_ong - 04-27-2025, 07:34 PM



Users browsing this thread: 2 Guest(s)