Tuesday, May 22nd 2012, 1:49am UTC+2

You are not logged in.

  • Login
  • Register

1

Friday, December 2nd 2011, 3:03am

MSGBOX

hello I have this error code that is suggested 'by jabaco:
I want the message ok and a cancel 1boton and know that option is chosen

aviso=MsgBox ("high failure period", Buttons As VBMsgBoxStyle) As VBMsgBoxResult



I've tried the four options given jabaco and does not work.

regards

theuserbl

Intermediate

2

Friday, December 2nd 2011, 8:18am

RE: MSGBOX

For example create in the designer a Button and write then in the Form of it:

Jabaco Source

1
2
3
4
5
6
Public Sub Command1_Click()
  Dim aviso As VBMsgBoxResult
  aviso=MsgBox ("high failure period", VBMsgBoxStyle.vbOKCancel) 
  MsgBox(aviso)
  MsgBox(aviso.getName)   'works only with Jabaco Framework versions newer then that, which comes with Jabaco 1.5.2
End Sub

Dani

Trainee

Posts: 68

Location: GERMANY

3

Friday, December 2nd 2011, 10:01am

MsgBox with options

Hey there,
here is how to use some options:

Jabaco Source

1
Debug.Print MsgBox("Question?", vbQuestion Or vbOKCancel Or vbDefaultButton2, "Titel")


The 3rd option 'vbDefaultButton2' does not work!
Does anyone know how to change the vbDefaultButton of the Msg or Input Box?


Dani

4

Saturday, December 3rd 2011, 2:24am

thanks theuserbl
works perfect as I wanted
regards



elsardo

5

Saturday, December 3rd 2011, 2:26am

thanks theuserbl
works perfect as I wanted
regards

Rate this thread
WoltLab Burning Board